@corva/ui 0.69.0-1 → 0.69.0-10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/cjs-bundle/components/AddComment/Popover.js +1 -1
  2. package/cjs-bundle/components/AddComment/components/Content.js +1 -1
  3. package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  4. package/cjs-bundle/components/AssetEditorV2/components/MultipleAssetsToggle.js +1 -1
  5. package/cjs-bundle/components/AssetEditorV2/index.js +1 -1
  6. package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
  7. package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  8. package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
  9. package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  10. package/cjs-bundle/components/CollapsableSidebar.js +1 -1
  11. package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
  12. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  13. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  14. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  15. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
  16. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
  17. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  18. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/RollbarWrapper/RollbarWrapper.js +1 -1
  19. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
  20. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  21. package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  22. package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
  23. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  24. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  25. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  26. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  27. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  28. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  29. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  30. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  31. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  32. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  33. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  34. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  35. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  36. package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  37. package/cjs-bundle/components/EChartsWrapper/EChartsWrapper.js +1 -0
  38. package/cjs-bundle/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -0
  39. package/cjs-bundle/components/EChartsWrapper/components/Toolbox/ToolboxButton.js +1 -0
  40. package/cjs-bundle/components/EmptyState/constants.js +1 -1
  41. package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
  42. package/cjs-bundle/components/FeedItem/components/FeedComments.js +1 -1
  43. package/cjs-bundle/components/ImageViewer/index.js +1 -1
  44. package/cjs-bundle/components/MiddleTruncatedText/MiddleTruncatedText.js +1 -0
  45. package/cjs-bundle/components/Modal/Modal.js +1 -1
  46. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
  47. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  48. package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  49. package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  50. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  51. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  52. package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  53. package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  54. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  55. package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  56. package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  57. package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  58. package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  59. package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  60. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  61. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  62. package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.module.css.js +1 -1
  63. package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  64. package/cjs-bundle/components/OffsetWellPickerV4/effects/useBicWells.js +1 -1
  65. package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
  66. package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  67. package/cjs-bundle/components/Popover/Popover.js +1 -1
  68. package/cjs-bundle/components/Popper/Popper.js +1 -1
  69. package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -1
  70. package/cjs-bundle/components/Search/Search.js +1 -1
  71. package/cjs-bundle/components/Search/styles.js +1 -1
  72. package/cjs-bundle/components/StatusBadge/components/DQAlertsTooltip.js +1 -1
  73. package/cjs-bundle/components/StatusBadge/index.js +1 -1
  74. package/cjs-bundle/components/TextLink/index.js +1 -1
  75. package/cjs-bundle/components/index.js +1 -1
  76. package/cjs-bundle/effects/useDelayedDcFullscreenElemOpen.js +1 -1
  77. package/cjs-bundle/utils/formatting.js +1 -1
  78. package/components/AddComment/Popover.js +1 -1
  79. package/components/AddComment/components/Content.js +1 -1
  80. package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
  81. package/components/AssetEditor/AssetEditorAutocomplete.d.ts +3 -3
  82. package/components/AssetEditor/SingleAssetEditor.d.ts +5 -5
  83. package/components/AssetEditorV2/components/MultipleAssetsToggle.js +1 -1
  84. package/components/AssetEditorV2/index.d.ts +5 -1
  85. package/components/AssetEditorV2/index.d.ts.map +1 -1
  86. package/components/AssetEditorV2/index.js +1 -1
  87. package/components/BICOffsetPickerDialog/index.js +1 -1
  88. package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
  89. package/components/Casing/CasingTableV2/components/Component.js +1 -1
  90. package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
  91. package/components/CollapsableSidebar.js +1 -1
  92. package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
  93. package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
  94. package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
  95. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts +6 -4
  96. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts.map +1 -1
  97. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
  98. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.d.ts +1 -0
  99. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.d.ts.map +1 -1
  100. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
  101. package/components/DevCenter/DevCenterAppContainer/components/{AppSettingsDialogV2 → AppSettingsDialog}/__tests__/AppSettingsDialogV2.test.d.ts.map +1 -1
  102. package/components/DevCenter/DevCenterAppContainer/components/{AppSettingsDialogV2 → AppSettingsDialog}/__tests__/RemoveAppButton.test.d.ts.map +1 -1
  103. package/components/DevCenter/DevCenterAppContainer/components/{AppSettingsDialogV2 → AppSettingsDialog}/styles.d.ts.map +1 -1
  104. package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
  105. package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
  106. package/components/DevCenter/DevCenterAppContainer/components/RollbarWrapper/RollbarWrapper.d.ts.map +1 -1
  107. package/components/DevCenter/DevCenterAppContainer/components/RollbarWrapper/RollbarWrapper.js +1 -1
  108. package/components/DevCenter/DevCenterAppContainer/components/index.d.ts +0 -1
  109. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
  110. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
  111. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.d.ts.map +1 -1
  112. package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
  113. package/components/DocumentViewer/DocumentViewer.js +1 -1
  114. package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
  115. package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
  116. package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
  117. package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
  118. package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
  119. package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
  120. package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
  121. package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
  122. package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
  123. package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
  124. package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
  125. package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
  126. package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
  127. package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
  128. package/components/EChartsWrapper/ECharts.stories.d.ts +19 -0
  129. package/components/EChartsWrapper/ECharts.stories.d.ts.map +1 -0
  130. package/components/EChartsWrapper/EChartsWrapper.d.ts +5 -0
  131. package/components/EChartsWrapper/EChartsWrapper.d.ts.map +1 -0
  132. package/components/EChartsWrapper/EChartsWrapper.js +1 -0
  133. package/components/EChartsWrapper/components/Toolbox/Toolbox.d.ts +4 -0
  134. package/components/EChartsWrapper/components/Toolbox/Toolbox.d.ts.map +1 -0
  135. package/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -0
  136. package/components/EChartsWrapper/components/Toolbox/ToolboxButton.d.ts +4 -0
  137. package/components/EChartsWrapper/components/Toolbox/ToolboxButton.d.ts.map +1 -0
  138. package/components/EChartsWrapper/components/Toolbox/ToolboxButton.js +1 -0
  139. package/components/EChartsWrapper/components/Toolbox/__tests__/Toolbox.test.d.ts +2 -0
  140. package/components/EChartsWrapper/components/Toolbox/__tests__/Toolbox.test.d.ts.map +1 -0
  141. package/components/EChartsWrapper/index.d.ts +2 -0
  142. package/components/EChartsWrapper/index.d.ts.map +1 -0
  143. package/components/EChartsWrapper/options.d.ts +3 -0
  144. package/components/EChartsWrapper/options.d.ts.map +1 -0
  145. package/components/EChartsWrapper/types.d.ts +48 -0
  146. package/components/EChartsWrapper/types.d.ts.map +1 -0
  147. package/components/EmptyState/EmptyState.d.ts +1 -1
  148. package/components/EmptyState/constants.d.ts +1 -1
  149. package/components/EmptyState/constants.js +1 -1
  150. package/components/FeedItem/FeedItem.js +1 -1
  151. package/components/FeedItem/components/FeedComments.js +1 -1
  152. package/components/GradientPicker/GradientPicker.stories.d.ts +1 -0
  153. package/components/GradientPicker/GradientPicker.stories.d.ts.map +1 -1
  154. package/components/ImageViewer/index.js +1 -1
  155. package/components/MiddleTruncatedText/MiddleTruncatedText.d.ts +10 -0
  156. package/components/MiddleTruncatedText/MiddleTruncatedText.d.ts.map +1 -0
  157. package/components/MiddleTruncatedText/MiddleTruncatedText.js +1 -0
  158. package/components/MiddleTruncatedText/__tests__/MiddleTruncatedText.test.d.ts +2 -0
  159. package/components/MiddleTruncatedText/__tests__/MiddleTruncatedText.test.d.ts.map +1 -0
  160. package/components/MiddleTruncatedText/index.d.ts +2 -0
  161. package/components/MiddleTruncatedText/index.d.ts.map +1 -0
  162. package/components/Modal/Modal.js +1 -1
  163. package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
  164. package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
  165. package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
  166. package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
  167. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
  168. package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
  169. package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
  170. package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
  171. package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
  172. package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
  173. package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
  174. package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
  175. package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
  176. package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
  177. package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
  178. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
  179. package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.module.css.js +1 -1
  180. package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
  181. package/components/OffsetWellPickerV4/effects/useBicWells.d.ts.map +1 -1
  182. package/components/OffsetWellPickerV4/effects/useBicWells.js +1 -1
  183. package/components/PadOffsetsPicker/StagesSelector.js +1 -1
  184. package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
  185. package/components/Popover/Popover.js +1 -1
  186. package/components/Popper/Popper.js +1 -1
  187. package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -1
  188. package/components/Search/Search.d.ts +1 -16
  189. package/components/Search/Search.d.ts.map +1 -1
  190. package/components/Search/Search.js +1 -1
  191. package/components/Search/styles.d.ts +1 -1
  192. package/components/Search/styles.d.ts.map +1 -1
  193. package/components/Search/styles.js +1 -1
  194. package/components/StatusBadge/components/DQAlertsTooltip.js +1 -1
  195. package/components/StatusBadge/index.js +1 -1
  196. package/components/TextLink/index.js +1 -1
  197. package/components/index.d.ts +3 -1
  198. package/components/index.js +1 -1
  199. package/effects/useDelayedDcFullscreenElemOpen.js +1 -1
  200. package/package.json +5 -3
  201. package/utils/convert.d.ts +14 -4
  202. package/utils/convert.d.ts.map +1 -1
  203. package/utils/formatting.js +1 -1
  204. package/utils/index.d.ts +14 -4
  205. package/utils/index.d.ts.map +1 -1
  206. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppDetails.js +0 -1
  207. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.module.css.js +0 -1
  208. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/style.css.js +0 -1
  209. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js +0 -1
  210. package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/RemoveAppButton.js +0 -1
  211. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppDetails.d.ts +0 -6
  212. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppDetails.d.ts.map +0 -1
  213. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppDetails.js +0 -1
  214. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.module.css.js +0 -1
  215. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/style.css.js +0 -1
  216. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.d.ts +0 -47
  217. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.d.ts.map +0 -1
  218. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js +0 -1
  219. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/RemoveAppButton.d.ts +0 -14
  220. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/RemoveAppButton.d.ts.map +0 -1
  221. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/RemoveAppButton.js +0 -1
  222. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/index.d.ts +0 -2
  223. package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/index.d.ts.map +0 -1
  224. /package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/{AppSettingsDialogV2 → AppSettingsDialog}/styles.js +0 -0
  225. /package/components/DevCenter/DevCenterAppContainer/components/{AppSettingsDialogV2 → AppSettingsDialog}/__tests__/AppSettingsDialogV2.test.d.ts +0 -0
  226. /package/components/DevCenter/DevCenterAppContainer/components/{AppSettingsDialogV2 → AppSettingsDialog}/__tests__/RemoveAppButton.test.d.ts +0 -0
  227. /package/components/DevCenter/DevCenterAppContainer/components/{AppSettingsDialogV2 → AppSettingsDialog}/styles.d.ts +0 -0
  228. /package/components/DevCenter/DevCenterAppContainer/components/{AppSettingsDialogV2 → AppSettingsDialog}/styles.js +0 -0
package/utils/index.d.ts CHANGED
@@ -12,7 +12,7 @@ export const components: any;
12
12
  import * as convert from "./convert";
13
13
  export const convertArray: (iterable: number[][], key: string, unitType: string, from: string, to?: string, precision?: number) => number[][];
14
14
  export const convertImmutables: (immt: any, key: string, unitType: string, from: string, to?: string, precision?: number) => any;
15
- export const convertImmutablesByBatch: (immt: any, convertionRules: any) => any;
15
+ export const convertImmutablesByBatch: (immt: any, conversionRules: any) => any;
16
16
  import { convertKeysToCamelCase } from "./convertKeys";
17
17
  import { convertKeysToSnakeCase } from "./convertKeys";
18
18
  export const convertValue: (value: number, unitType: string, from: string, to?: string, precision?: number) => number;
@@ -41,8 +41,15 @@ export const getDefaultImperialUnit: (unitType: any) => any;
41
41
  export const getDefaultUnits: () => any;
42
42
  import { getLocalStorageItem } from "./localStorage";
43
43
  export const getUniqueUnitsByType: (type: string) => string[];
44
- export const getUnitDescription: (unitType: string) => any;
45
- export const getUnitDisplay: (unitType: any, unitTo?: any) => any;
44
+ export const getUnitDescription: (unitType: string) => {
45
+ abbr: string;
46
+ measure: string;
47
+ system: string;
48
+ singular: string;
49
+ plural: string;
50
+ display: string;
51
+ };
52
+ export const getUnitDisplay: (unitType: string, unitTo?: string) => string;
46
53
  export const getUnitPlural: (unitType: string) => string;
47
54
  export const getUnitPreference: (unitType: string) => string;
48
55
  export const getUnitSingular: (unitType: string) => string;
@@ -75,7 +82,10 @@ import * as themeVariables from "./themeVariables";
75
82
  import * as time from "./time";
76
83
  import * as torqueAndHookloadUtils from "./torqueAndHookloadUtils";
77
84
  import { updateLocalStorageItem } from "./localStorage";
78
- export const updateUserUnits: ({ userUnits, companyUnits }: any) => void;
85
+ export const updateUserUnits: ({ userUnits, companyUnits }: {
86
+ userUnits: Record<string, string>;
87
+ companyUnits: Record<string, string>;
88
+ }) => void;
79
89
  import { isSuggestionsListOpened } from "../components/UserMention/utils";
80
90
  export { StageDesignVActualUtils, accuracy, alerts, apps, audio, bha, casing, chartSeries, completion, convert, convertKeysToCamelCase, convertKeysToSnakeCase, createNotification, csvExport, dashboardReports, devcenter, drillstring, drillstringUtils, env, feed, fileExtension, fluidCheckUtils, formatting, ga, formatMentionText, getConvertKeys, getLocalStorageItem, goals, jsonaDataFormatter, lasParser, main, mapUnits, metricsUtils, mobileDetect, nativeMessages, notifications, permissions, removeNotification, reports, resolveWellHubSlug, sharedDCStore, showErrorNotification, showInfoNotification, showNeutralNotification, showSuccessNotification, showToast, showWarningNotification, themeVariables, time, torqueAndHookloadUtils, updateLocalStorageItem, isSuggestionsListOpened };
81
91
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":";;;;;;;;;;AA4FA,6BAAuE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AADvE,yBAA+D"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":";;;;;;;;;;AA4FA,6BAAuE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AADvE,yBAA+D"}
@@ -1 +0,0 @@
1
- "use strict";var e=require("../../../../SlateFormattedText/SlateFormattedText.js");require("../../../../SlateFormattedText/RenderElements.js"),require("@babel/runtime/helpers/typeof"),require("lodash"),require("slate");var r=require("../../../../Typography.js"),t=require("./style.css.js"),a=require("react/jsx-runtime");module.exports=function(s){var i=s.appDescription,d=s.appSummary;return a.jsxs("div",{className:t.appSettingsDescription,children:[a.jsx(r.Regular16,{paragraph:!0,children:"Description"}),a.jsx(r.Regular14,{"data-testid":"".concat("DC_AppDetails","_description"),children:a.jsx(e,{text:i,defaultText:a.jsx("i",{children:"No description was provided"})})}),a.jsx("br",{}),a.jsx(r.Regular16,{paragraph:!0,children:"Summary"}),a.jsx(r.Regular14,{"data-testid":"".concat("DC_AppDetails","_summary"),children:a.jsx(e,{text:d,defaultText:a.jsx("i",{children:"No summary was provided"})})})]})};
@@ -1 +0,0 @@
1
- "use strict";require('./../../../../../ext-esm/style-inject/dist/style-inject.es.js')(".AppSettingsDialog-module_viewAppButton__PXL5x{align-self:center}"),module.exports={viewAppButton:"AppSettingsDialog-module_viewAppButton__PXL5x"};
@@ -1 +0,0 @@
1
- "use strict";require('./../../../../../ext-esm/style-inject/dist/style-inject.es.js')(".style_appSettingsDescription__Qij1g{padding:10px 0}"),module.exports={appSettingsDescription:"style_appSettingsDescription__Qij1g"};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/defineProperty"),n=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),r=require("prop-types"),s=require("lodash"),i=require("@material-ui/core"),o=require("@material-ui/icons");require("@babel/runtime/helpers/objectWithoutProperties"),require("@material-ui/pickers"),require("@date-io/moment"),require("moment"),require("../../../../../config/theme/index.js");var a=require("react/jsx-runtime"),c=require("../../../../../hocs/withAssetEditorLockHOC.js"),l=require("../../../../ErrorBoundary/ErrorBoundary.js"),p=require("../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js"),u=require("../../../../Button/index.js"),d=require("../../../../Modal/Modal.js"),g=require("../../../../AssetEditorV2/index.js"),j=require("../../../../AppVersionsSelect/AppVersionsSelect.js"),m=require("../../../../DisabledSettingsMessage/DisabledSettingsMessage.js"),f=require("../../../../ConfirmationDialog.js"),v=require("../../../../../constants/devcenter.js");require("../../../../../constants/goals.js");var h=require("../../../../../constants/segment.js");require("../../../../../constants/alerts.js"),require("../../../../../constants/apps.js"),require("../../../../../constants/drillstring.js"),require("../../../../../constants/completion.js"),require("../../../../../constants/appPackages.js"),require("../../../../../constants/notifications.js"),require("../../../../../constants/feed.js"),require("../../../../../constants/bha.js"),require("../../../../../utils/env.js"),require("../../../../GradientManager/configuration/constants.js"),require("../../../../../utils/index.js");var q=require("../../../../AppIcon/AppIcon.js"),x=require("./RemoveAppButton.js"),A=require("./styles.js"),S=require("../../utils.js"),C=require("../../../../../utils/notificationToasts.js");function y(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=y(e),E=y(n);function D(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function N(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?D(Object(t),!0).forEach((function(n){b.default(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):D(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}var O="DC_appSettings",I=c(g);function w(e){var n,r,c,y,D,w=e.AppSettingsComponent,P=e.app,k=e.appData,R=e.appName,T=e.currentUser,M=e.isMultiRig,_=e.isSettingsDialogHidden,V=e.layoutEnvironment,B=e.onAppRemove,H=e.onCloneDashboard,G=e.onSettingsChange,L=e.openIntercom,U=e.rigId,F=e.segment,Y=e.toggleAppSettingsDialog,K=t.useState(!1),W=E.default(K,2);W[0];var z=W[1],J=t.useState((function(){var e;return N(N({},s.cloneDeep(P.settings)),{},{package:P.settings.package||(null==P||null===(e=P.package)||void 0===e?void 0:e.version)})})),Q=E.default(J,2),X=Q[0],Z=Q[1],$=S.getIsSustainabilityApp(null==P||null===(n=P.app)||void 0===n?void 0:n.id),ee=t.useState(!0),ne=E.default(ee,2),te=ne[0],re=ne[1],se=t.useRef(null),ie=Boolean(null===(r=se.current)||void 0===r?void 0:r.clientHeight),oe=A({isCompletionApp:F===h.SEGMENTS.COMPLETION,isSustainabilityApp:$,hasCustomAppSettings:ie}),ae=P.id===v.DEV_CENTER_CLI_APP_ID,ce=function(e,n){return Z((function(t){return N(N({},t),{},b.default({},e,n))}))},le=function(e){return Z((function(n){return N(N({},n),e)}))},pe=V&&"asset"===V.type,ue=!(M||pe&&F===h.SEGMENTS.COMPLETION),de=pe?I:g;t.useEffect((function(){s.debounce(z,200)(!0)}),[]);var ge=a.jsx("div",{ref:se,children:w&&a.jsx(w,{app:P,appData:k,settings:X,onSettingChange:ce,onSettingsChange:le,layoutEnvironment:V,currentUser:T})}),je=a.jsxs("div",{className:oe.modalTitleContainer,children:[a.jsx(q.AppIcon,{className:oe.appIcon,segment:null==P?void 0:P.segment,iconUrl:null==P||null===(c=P.app)||void 0===c||null===(y=c.icon)||void 0===y?void 0:y.url,height:48,width:48}),a.jsxs("div",{children:[a.jsx("div",{children:"".concat(R," Settings")}),a.jsxs("div",{"data-testid":"".concat(O,"_appstoreLink"),className:oe.appStoreButton,onClick:function(){var e,n;return window.open((n=null==P||null===(e=P.app)||void 0===e?void 0:e.id,"/app-store/app/".concat(n)),"_top")},children:["Open in Appstore ",a.jsx(o.ArrowForward,{className:oe.arrowIcon})]})]})]}),me=a.jsxs("div",{className:oe.modalActions,children:[!_&&B&&a.jsx(x.default,{appName:R,onAppRemove:B}),a.jsxs("div",{className:oe.mainActions,children:[a.jsx(u,{"data-testid":"".concat(O,"_cancel"),variation:"secondary",onClick:Y,children:"Cancel"}),_&&a.jsx(u,{variation:"primary",onClick:function(){return H()},children:"Copy Dashboard"}),!_&&a.jsx(u,{"data-testid":"".concat(O,"_save"),className:oe.saveButton,variation:"primary",onClick:function(){X.package||ae?(G(X),C.showSuccessNotification("Successfully saved"),Y()):re(!1)},children:"Save"})]})]}),fe=a.jsxs(a.Fragment,{children:[ue&&a.jsx(de,{appKey:ae?null:P.app.app_key,appType:h.SEGMENT_TO_ASSET_TYPE[F],defaultValue:U,secondaryDefaultValue:null==k||null===(D=k.well)||void 0===D?void 0:D.asset_id,isHiddenMultipleAssetsToggle:!0,isHiddenTitle:!0,isNullable:pe,label:"Asset",onSettingsChange:le,settings:X}),a.jsx(j.default,{className:oe.appVersionSelect,appId:P.app.id,value:X.package,onChange:function(e){return ce("package",e)}})]});return a.jsx(d,{open:!0,onClose:Y,title:je,contentContainerClassName:oe.modalContainer,modalTitleClassName:oe.modalTitle,closeIconClassName:oe.closeIcon,contentClassName:oe.modalContent,actions:me,children:a.jsxs(l,{ErrorView:p,openIntercom:L,children:[a.jsx(f,{open:!te&&!X.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return re(!0)}}),_&&a.jsx(m,{}),!_&&a.jsxs(a.Fragment,{children:[a.jsxs(i.Accordion,{defaultExpanded:!0,className:oe.assetAccordion,children:[a.jsx(i.AccordionSummary,{classes:{content:oe.summaryContent,expandIcon:oe.expandIcon},expandIcon:a.jsx(o.ExpandMore,{}),children:"Asset"}),a.jsx(i.AccordionDetails,{classes:{root:oe.accordionDetails},children:fe})]}),a.jsxs(i.Accordion,{className:oe.accordion,defaultExpanded:!0,children:[a.jsx(i.AccordionSummary,{classes:{content:oe.summaryContent,expandIcon:oe.expandIcon},expandIcon:a.jsx(o.ExpandMore,{}),children:"App Settings"}),a.jsx(i.AccordionDetails,{classes:{root:oe.accordionDetails},children:ge})]})]})]})})}w.propTypes={AppSettingsComponent:r.node,app:r.shape({}).isRequired,appData:r.shape({}).isRequired,appName:r.string.isRequired,currentUser:r.shape({}).isRequired,isMultiRig:r.bool.isRequired,isSettingsDialogHidden:r.bool,layoutEnvironment:r.shape({}).isRequired,onAppRemove:r.func,onCloneDashboard:r.func,onSettingsChange:r.func.isRequired,segment:r.string.isRequired,toggleAppSettingsDialog:r.func.isRequired},w.defaultProps={AppSettingsComponent:null,isSettingsDialogHidden:!1,onAppRemove:void 0,onCloneDashboard:s.noop},exports.PAGE_NAME=O,exports.default=w;
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("@babel/runtime/helpers/slicedToArray"),t=require("react"),r=require("@material-ui/core"),o=require("prop-types"),i=require("../../../../Button/index.js"),n=require("../../../../Tooltip/Tooltip.js");require("../../../../Tooltip/ScrollableTooltip.js");var a=require("react/jsx-runtime");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var p=l(e),s=l(o),c={elevation:1},u=r.makeStyles({tooltip:{maxWidth:"none"}});function d(e){var o=e.appName,l=e.onAppRemove,s=t.useState(!1),d=p.default(s,2),m=d[0],v=d[1],x=function(){return v(!1)},f=u();return a.jsxs(a.Fragment,{children:[a.jsx(n.Tooltip,{classes:{tooltip:f.tooltip},title:"After removing app can be added again from AppStore",placement:"bottom-start",children:a.jsx("span",{children:a.jsx(i,{"data-testid":"".concat("DC_removeApp","_button"),onClick:function(){return v(!0)},variation:"dangerSecondary",children:"REMOVE APP"})})}),a.jsxs(r.Dialog,{open:m,onClose:x,PaperProps:c,children:[a.jsxs(r.DialogTitle,{"data-testid":"".concat("DC_removeApp","_title"),children:["Remove ",o]}),a.jsx(r.DialogContent,{children:a.jsx(r.DialogContentText,{children:"Are you sure you want to remove this app?"})}),a.jsxs(r.DialogActions,{children:[a.jsx(i,{"data-testid":"".concat("DC_removeApp","_cancel"),onClick:x,children:"Cancel"}),a.jsx(i,{"data-testid":"".concat("DC_removeApp","_confirm"),onClick:function(){return l()},variation:"dangerPrimary",children:"Remove"})]})]})]})}d.propTypes={appName:s.default.string.isRequired,onAppRemove:s.default.func.isRequired},exports.PAGE_NAME="DC_removeApp",exports.default=d;
@@ -1,6 +0,0 @@
1
- export default AppDetails;
2
- declare function AppDetails({ appDescription, appSummary }: {
3
- appDescription: any;
4
- appSummary: any;
5
- }): JSX.Element;
6
- //# sourceMappingURL=AppDetails.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppDetails.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppDetails.js"],"names":[],"mappings":";AAOA;;;gBAqBC"}
@@ -1 +0,0 @@
1
- import t from"../../../../SlateFormattedText/SlateFormattedText.js";import"../../../../SlateFormattedText/RenderElements.js";import"@babel/runtime/helpers/typeof";import"lodash";import"slate";import{Regular16 as e,Regular14 as r}from"../../../../Typography.js";import a from"./style.css.js";import{jsxs as i,jsx as p}from"react/jsx-runtime";var o=function(o){var s=o.appDescription,m=o.appSummary;return i("div",{className:a.appSettingsDescription,children:[p(e,{paragraph:!0,children:"Description"}),p(r,{"data-testid":"".concat("DC_AppDetails","_description"),children:p(t,{text:s,defaultText:p("i",{children:"No description was provided"})})}),p("br",{}),p(e,{paragraph:!0,children:"Summary"}),p(r,{"data-testid":"".concat("DC_AppDetails","_summary"),children:p(t,{text:m,defaultText:p("i",{children:"No summary was provided"})})})]})};export{o as default};
@@ -1 +0,0 @@
1
- import e from'./../../../../../ext-esm/style-inject/dist/style-inject.es.js';var t={viewAppButton:"AppSettingsDialog-module_viewAppButton__PXL5x"};e(".AppSettingsDialog-module_viewAppButton__PXL5x{align-self:center}");export{t as default};
@@ -1 +0,0 @@
1
- import t from'./../../../../../ext-esm/style-inject/dist/style-inject.es.js';var e={appSettingsDescription:"style_appSettingsDescription__Qij1g"};t(".style_appSettingsDescription__Qij1g{padding:10px 0}");export{e as default};
@@ -1,47 +0,0 @@
1
- export const PAGE_NAME: "DC_appSettings";
2
- export default AppSettingsDialog;
3
- declare function AppSettingsDialog({ AppSettingsComponent, app, appData, appName, currentUser, isMultiRig, isSettingsDialogHidden, layoutEnvironment, onAppRemove, onCloneDashboard, onSettingsChange, openIntercom, rigId, segment, toggleAppSettingsDialog, }: {
4
- AppSettingsComponent: any;
5
- app: any;
6
- appData: any;
7
- appName: any;
8
- currentUser: any;
9
- isMultiRig: any;
10
- isSettingsDialogHidden: any;
11
- layoutEnvironment: any;
12
- onAppRemove: any;
13
- onCloneDashboard: any;
14
- onSettingsChange: any;
15
- openIntercom: any;
16
- rigId: any;
17
- segment: any;
18
- toggleAppSettingsDialog: any;
19
- }): JSX.Element;
20
- declare namespace AppSettingsDialog {
21
- namespace propTypes {
22
- export { node as AppSettingsComponent };
23
- export const app: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{}>>>;
24
- export const appData: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{}>>>;
25
- export const appName: import("prop-types").Validator<string>;
26
- export const currentUser: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{}>>>;
27
- export const isMultiRig: import("prop-types").Validator<boolean>;
28
- export { bool as isSettingsDialogHidden };
29
- export const layoutEnvironment: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{}>>>;
30
- export { func as onAppRemove };
31
- export { func as onCloneDashboard };
32
- export const onSettingsChange: import("prop-types").Validator<(...args: any[]) => any>;
33
- export const segment: import("prop-types").Validator<string>;
34
- export const toggleAppSettingsDialog: import("prop-types").Validator<(...args: any[]) => any>;
35
- }
36
- namespace defaultProps {
37
- export const AppSettingsComponent: any;
38
- export const isSettingsDialogHidden: boolean;
39
- export const onAppRemove: any;
40
- export { noop as onCloneDashboard };
41
- }
42
- }
43
- import { node } from "prop-types";
44
- import { bool } from "prop-types";
45
- import { func } from "prop-types";
46
- import { noop } from "lodash/common/util";
47
- //# sourceMappingURL=AppSettingsDialog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AppSettingsDialog.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js"],"names":[],"mappings":"AA0BA,yCAA0C;;AAK1C;;;;;;;;;;;;;;;;gBA2NC"}
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/slicedToArray";import{useState as n,useRef as o,useEffect as i}from"react";import{node as r,shape as s,string as a,bool as p,func as l}from"prop-types";import{cloneDeep as c,debounce as d,noop as m}from"lodash";import{Accordion as u,AccordionSummary as g,AccordionDetails as f}from"@material-ui/core";import{ArrowForward as v,ExpandMore as h}from"@material-ui/icons";import"@babel/runtime/helpers/objectWithoutProperties";import"@material-ui/pickers";import"@date-io/moment";import"moment";import"../../../../../config/theme/index.js";import{jsx as j,jsxs as C,Fragment as y}from"react/jsx-runtime";import b from"../../../../../hocs/withAssetEditorLockHOC.js";import A from"../../../../ErrorBoundary/ErrorBoundary.js";import S from"../../../../ErrorBoundary/DevCenterAppErrorView/DevCenterAppErrorView.js";import D from"../../../../Button/index.js";import O from"../../../../Modal/Modal.js";import N from"../../../../AssetEditorV2/index.js";import k from"../../../../AppVersionsSelect/AppVersionsSelect.js";import I from"../../../../DisabledSettingsMessage/DisabledSettingsMessage.js";import E from"../../../../ConfirmationDialog.js";import{DEV_CENTER_CLI_APP_ID as w}from"../../../../../constants/devcenter.js";import"../../../../../constants/goals.js";import{SEGMENTS as R,SEGMENT_TO_ASSET_TYPE as x}from"../../../../../constants/segment.js";import"../../../../../constants/alerts.js";import"../../../../../constants/apps.js";import"../../../../../constants/drillstring.js";import"../../../../../constants/completion.js";import"../../../../../constants/appPackages.js";import"../../../../../constants/notifications.js";import"../../../../../constants/feed.js";import"../../../../../constants/bha.js";import"../../../../../utils/env.js";import"../../../../GradientManager/configuration/constants.js";import"../../../../../utils/index.js";import{AppIcon as P}from"../../../../AppIcon/AppIcon.js";import T from"./RemoveAppButton.js";import M from"./styles.js";import{getIsSustainabilityApp as V}from"../../utils.js";import{showSuccessNotification as q}from"../../../../../utils/notificationToasts.js";function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function H(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?B(Object(o),!0).forEach((function(n){e(t,n,o[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):B(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var _="DC_appSettings",L=b(N);function U(r){var s,a,p,l,m,b=r.AppSettingsComponent,B=r.app,U=r.appData,G=r.appName,K=r.currentUser,W=r.isMultiRig,Y=r.isSettingsDialogHidden,z=r.layoutEnvironment,F=r.onAppRemove,J=r.onCloneDashboard,Q=r.onSettingsChange,X=r.openIntercom,Z=r.rigId,$=r.segment,ee=r.toggleAppSettingsDialog,te=n(!1),ne=t(te,2);ne[0];var oe=ne[1],ie=n((function(){var e;return H(H({},c(B.settings)),{},{package:B.settings.package||(null==B||null===(e=B.package)||void 0===e?void 0:e.version)})})),re=t(ie,2),se=re[0],ae=re[1],pe=V(null==B||null===(s=B.app)||void 0===s?void 0:s.id),le=n(!0),ce=t(le,2),de=ce[0],me=ce[1],ue=o(null),ge=Boolean(null===(a=ue.current)||void 0===a?void 0:a.clientHeight),fe=M({isCompletionApp:$===R.COMPLETION,isSustainabilityApp:pe,hasCustomAppSettings:ge}),ve=B.id===w,he=function(t,n){return ae((function(o){return H(H({},o),{},e({},t,n))}))},je=function(e){return ae((function(t){return H(H({},t),e)}))},Ce=z&&"asset"===z.type,ye=!(W||Ce&&$===R.COMPLETION),be=Ce?L:N;i((function(){d(oe,200)(!0)}),[]);var Ae=j("div",{ref:ue,children:b&&j(b,{app:B,appData:U,settings:se,onSettingChange:he,onSettingsChange:je,layoutEnvironment:z,currentUser:K})}),Se=C("div",{className:fe.modalTitleContainer,children:[j(P,{className:fe.appIcon,segment:null==B?void 0:B.segment,iconUrl:null==B||null===(p=B.app)||void 0===p||null===(l=p.icon)||void 0===l?void 0:l.url,height:48,width:48}),C("div",{children:[j("div",{children:"".concat(G," Settings")}),C("div",{"data-testid":"".concat(_,"_appstoreLink"),className:fe.appStoreButton,onClick:function(){var e,t;return window.open((t=null==B||null===(e=B.app)||void 0===e?void 0:e.id,"/app-store/app/".concat(t)),"_top")},children:["Open in Appstore ",j(v,{className:fe.arrowIcon})]})]})]}),De=C("div",{className:fe.modalActions,children:[!Y&&F&&j(T,{appName:G,onAppRemove:F}),C("div",{className:fe.mainActions,children:[j(D,{"data-testid":"".concat(_,"_cancel"),variation:"secondary",onClick:ee,children:"Cancel"}),Y&&j(D,{variation:"primary",onClick:function(){return J()},children:"Copy Dashboard"}),!Y&&j(D,{"data-testid":"".concat(_,"_save"),className:fe.saveButton,variation:"primary",onClick:function(){se.package||ve?(Q(se),q("Successfully saved"),ee()):me(!1)},children:"Save"})]})]}),Oe=C(y,{children:[ye&&j(be,{appKey:ve?null:B.app.app_key,appType:x[$],defaultValue:Z,secondaryDefaultValue:null==U||null===(m=U.well)||void 0===m?void 0:m.asset_id,isHiddenMultipleAssetsToggle:!0,isHiddenTitle:!0,isNullable:Ce,label:"Asset",onSettingsChange:je,settings:se}),j(k,{className:fe.appVersionSelect,appId:B.app.id,value:se.package,onChange:function(e){return he("package",e)}})]});return j(O,{open:!0,onClose:ee,title:Se,contentContainerClassName:fe.modalContainer,modalTitleClassName:fe.modalTitle,closeIconClassName:fe.closeIcon,contentClassName:fe.modalContent,actions:De,children:C(A,{ErrorView:S,openIntercom:X,children:[j(E,{open:!de&&!se.package,isShowCancel:!1,title:"Validation failed",text:"You should select the app version to proceed",handleOk:function(){return me(!0)}}),Y&&j(I,{}),!Y&&C(y,{children:[C(u,{defaultExpanded:!0,className:fe.assetAccordion,children:[j(g,{classes:{content:fe.summaryContent,expandIcon:fe.expandIcon},expandIcon:j(h,{}),children:"Asset"}),j(f,{classes:{root:fe.accordionDetails},children:Oe})]}),C(u,{className:fe.accordion,defaultExpanded:!0,children:[j(g,{classes:{content:fe.summaryContent,expandIcon:fe.expandIcon},expandIcon:j(h,{}),children:"App Settings"}),j(f,{classes:{root:fe.accordionDetails},children:Ae})]})]})]})})}U.propTypes={AppSettingsComponent:r,app:s({}).isRequired,appData:s({}).isRequired,appName:a.isRequired,currentUser:s({}).isRequired,isMultiRig:p.isRequired,isSettingsDialogHidden:p,layoutEnvironment:s({}).isRequired,onAppRemove:l,onCloneDashboard:l,onSettingsChange:l.isRequired,segment:a.isRequired,toggleAppSettingsDialog:l.isRequired},U.defaultProps={AppSettingsComponent:null,isSettingsDialogHidden:!1,onAppRemove:void 0,onCloneDashboard:m};export{_ as PAGE_NAME,U as default};
@@ -1,14 +0,0 @@
1
- export const PAGE_NAME: "DC_removeApp";
2
- export default RemoveAppButton;
3
- declare function RemoveAppButton({ appName, onAppRemove }: {
4
- appName: any;
5
- onAppRemove: any;
6
- }): JSX.Element;
7
- declare namespace RemoveAppButton {
8
- namespace propTypes {
9
- const appName: PropTypes.Validator<string>;
10
- const onAppRemove: PropTypes.Validator<(...args: any[]) => any>;
11
- }
12
- }
13
- import PropTypes from "prop-types";
14
- //# sourceMappingURL=RemoveAppButton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RemoveAppButton.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/RemoveAppButton.js"],"names":[],"mappings":"AAcA,uCAAwC;;AAUxC;;;gBAmDC"}
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/slicedToArray";import{useState as o}from"react";import{makeStyles as r,Dialog as t,DialogTitle as i,DialogContent as n,DialogContentText as p,DialogActions as a}from"@material-ui/core";import c from"prop-types";import l from"../../../../Button/index.js";import{Tooltip as m}from"../../../../Tooltip/Tooltip.js";import"../../../../Tooltip/ScrollableTooltip.js";import{jsxs as d,Fragment as s,jsx as u}from"react/jsx-runtime";var f="DC_removeApp",v={elevation:1},h=r({tooltip:{maxWidth:"none"}});function A(r){var c=r.appName,f=r.onAppRemove,A=o(!1),C=e(A,2),_=C[0],y=C[1],R=function(){return y(!1)},b=h();return d(s,{children:[u(m,{classes:{tooltip:b.tooltip},title:"After removing app can be added again from AppStore",placement:"bottom-start",children:u("span",{children:u(l,{"data-testid":"".concat("DC_removeApp","_button"),onClick:function(){return y(!0)},variation:"dangerSecondary",children:"REMOVE APP"})})}),d(t,{open:_,onClose:R,PaperProps:v,children:[d(i,{"data-testid":"".concat("DC_removeApp","_title"),children:["Remove ",c]}),u(n,{children:u(p,{children:"Are you sure you want to remove this app?"})}),d(a,{children:[u(l,{"data-testid":"".concat("DC_removeApp","_cancel"),onClick:R,children:"Cancel"}),u(l,{"data-testid":"".concat("DC_removeApp","_confirm"),onClick:function(){return f()},variation:"dangerPrimary",children:"Remove"})]})]})]})}A.propTypes={appName:c.string.isRequired,onAppRemove:c.func.isRequired};export{f as PAGE_NAME,A as default};
@@ -1,2 +0,0 @@
1
- export { default } from "./AppSettingsDialog";
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/index.js"],"names":[],"mappings":""}