@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.
- package/cjs-bundle/components/AddComment/Popover.js +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js +1 -1
- package/cjs-bundle/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/components/MultipleAssetsToggle.js +1 -1
- package/cjs-bundle/components/AssetEditorV2/index.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/CollapsableSidebar.js +1 -1
- package/cjs-bundle/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/RollbarWrapper/RollbarWrapper.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/cjs-bundle/components/EChartsWrapper/EChartsWrapper.js +1 -0
- package/cjs-bundle/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -0
- package/cjs-bundle/components/EChartsWrapper/components/Toolbox/ToolboxButton.js +1 -0
- package/cjs-bundle/components/EmptyState/constants.js +1 -1
- package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
- package/cjs-bundle/components/FeedItem/components/FeedComments.js +1 -1
- package/cjs-bundle/components/ImageViewer/index.js +1 -1
- package/cjs-bundle/components/MiddleTruncatedText/MiddleTruncatedText.js +1 -0
- package/cjs-bundle/components/Modal/Modal.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.module.css.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/effects/useBicWells.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/cjs-bundle/components/Popover/Popover.js +1 -1
- package/cjs-bundle/components/Popper/Popper.js +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.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/StatusBadge/components/DQAlertsTooltip.js +1 -1
- package/cjs-bundle/components/StatusBadge/index.js +1 -1
- package/cjs-bundle/components/TextLink/index.js +1 -1
- package/cjs-bundle/components/index.js +1 -1
- package/cjs-bundle/effects/useDelayedDcFullscreenElemOpen.js +1 -1
- package/cjs-bundle/utils/formatting.js +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/Annotations/components/AnnotationsList/components/AddAnnotationForm/index.js +1 -1
- package/components/AssetEditor/AssetEditorAutocomplete.d.ts +3 -3
- package/components/AssetEditor/SingleAssetEditor.d.ts +5 -5
- package/components/AssetEditorV2/components/MultipleAssetsToggle.js +1 -1
- package/components/AssetEditorV2/index.d.ts +5 -1
- package/components/AssetEditorV2/index.d.ts.map +1 -1
- package/components/AssetEditorV2/index.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/CollapsableSidebar.js +1 -1
- package/components/DevCenter/AppsDataProvider/effects/utils.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppInfoMessage/AppInfoMessage.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts +6 -4
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.d.ts +1 -0
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/RemoveAppButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/{AppSettingsDialogV2 → AppSettingsDialog}/__tests__/AppSettingsDialogV2.test.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/{AppSettingsDialogV2 → AppSettingsDialog}/__tests__/RemoveAppButton.test.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/{AppSettingsDialogV2 → AppSettingsDialog}/styles.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/DevCenterAppView/DevCenterAppView.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/RollbarWrapper/RollbarWrapper.d.ts.map +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/RollbarWrapper/RollbarWrapper.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/index.d.ts +0 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterAppZoidComponent.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedApp.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.d.ts.map +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.js +1 -1
- package/components/DocumentViewer/DocumentViewer.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/components/EChartsWrapper/ECharts.stories.d.ts +19 -0
- package/components/EChartsWrapper/ECharts.stories.d.ts.map +1 -0
- package/components/EChartsWrapper/EChartsWrapper.d.ts +5 -0
- package/components/EChartsWrapper/EChartsWrapper.d.ts.map +1 -0
- package/components/EChartsWrapper/EChartsWrapper.js +1 -0
- package/components/EChartsWrapper/components/Toolbox/Toolbox.d.ts +4 -0
- package/components/EChartsWrapper/components/Toolbox/Toolbox.d.ts.map +1 -0
- package/components/EChartsWrapper/components/Toolbox/Toolbox.js +1 -0
- package/components/EChartsWrapper/components/Toolbox/ToolboxButton.d.ts +4 -0
- package/components/EChartsWrapper/components/Toolbox/ToolboxButton.d.ts.map +1 -0
- package/components/EChartsWrapper/components/Toolbox/ToolboxButton.js +1 -0
- package/components/EChartsWrapper/components/Toolbox/__tests__/Toolbox.test.d.ts +2 -0
- package/components/EChartsWrapper/components/Toolbox/__tests__/Toolbox.test.d.ts.map +1 -0
- package/components/EChartsWrapper/index.d.ts +2 -0
- package/components/EChartsWrapper/index.d.ts.map +1 -0
- package/components/EChartsWrapper/options.d.ts +3 -0
- package/components/EChartsWrapper/options.d.ts.map +1 -0
- package/components/EChartsWrapper/types.d.ts +48 -0
- package/components/EChartsWrapper/types.d.ts.map +1 -0
- package/components/EmptyState/EmptyState.d.ts +1 -1
- package/components/EmptyState/constants.d.ts +1 -1
- package/components/EmptyState/constants.js +1 -1
- package/components/FeedItem/FeedItem.js +1 -1
- package/components/FeedItem/components/FeedComments.js +1 -1
- package/components/GradientPicker/GradientPicker.stories.d.ts +1 -0
- package/components/GradientPicker/GradientPicker.stories.d.ts.map +1 -1
- package/components/ImageViewer/index.js +1 -1
- package/components/MiddleTruncatedText/MiddleTruncatedText.d.ts +10 -0
- package/components/MiddleTruncatedText/MiddleTruncatedText.d.ts.map +1 -0
- package/components/MiddleTruncatedText/MiddleTruncatedText.js +1 -0
- package/components/MiddleTruncatedText/__tests__/MiddleTruncatedText.test.d.ts +2 -0
- package/components/MiddleTruncatedText/__tests__/MiddleTruncatedText.test.d.ts.map +1 -0
- package/components/MiddleTruncatedText/index.d.ts +2 -0
- package/components/MiddleTruncatedText/index.d.ts.map +1 -0
- package/components/Modal/Modal.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.module.css.js +1 -1
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/components/OffsetWellPickerV4/effects/useBicWells.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/effects/useBicWells.js +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/components/Popover/Popover.js +1 -1
- package/components/Popper/Popper.js +1 -1
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxList.js +1 -1
- package/components/Search/Search.d.ts +1 -16
- package/components/Search/Search.d.ts.map +1 -1
- package/components/Search/Search.js +1 -1
- package/components/Search/styles.d.ts +1 -1
- package/components/Search/styles.d.ts.map +1 -1
- package/components/Search/styles.js +1 -1
- package/components/StatusBadge/components/DQAlertsTooltip.js +1 -1
- package/components/StatusBadge/index.js +1 -1
- package/components/TextLink/index.js +1 -1
- package/components/index.d.ts +3 -1
- package/components/index.js +1 -1
- package/effects/useDelayedDcFullscreenElemOpen.js +1 -1
- package/package.json +5 -3
- package/utils/convert.d.ts +14 -4
- package/utils/convert.d.ts.map +1 -1
- package/utils/formatting.js +1 -1
- package/utils/index.d.ts +14 -4
- package/utils/index.d.ts.map +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppDetails.js +0 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.module.css.js +0 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/style.css.js +0 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js +0 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/RemoveAppButton.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppDetails.d.ts +0 -6
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppDetails.d.ts.map +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppDetails.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.module.css.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/style.css.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.d.ts +0 -47
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.d.ts.map +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/AppSettingsDialog.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/RemoveAppButton.d.ts +0 -14
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/RemoveAppButton.d.ts.map +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/RemoveAppButton.js +0 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/index.d.ts +0 -2
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/index.d.ts.map +0 -1
- /package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/{AppSettingsDialogV2 → AppSettingsDialog}/styles.js +0 -0
- /package/components/DevCenter/DevCenterAppContainer/components/{AppSettingsDialogV2 → AppSettingsDialog}/__tests__/AppSettingsDialogV2.test.d.ts +0 -0
- /package/components/DevCenter/DevCenterAppContainer/components/{AppSettingsDialogV2 → AppSettingsDialog}/__tests__/RemoveAppButton.test.d.ts +0 -0
- /package/components/DevCenter/DevCenterAppContainer/components/{AppSettingsDialogV2 → AppSettingsDialog}/styles.d.ts +0 -0
- /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,
|
|
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) =>
|
|
45
|
-
|
|
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 }:
|
|
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
|
package/utils/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":";;;;;;;;;;AA4FA,6BAAuE
|
|
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;
|
package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppDetails.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppDetails.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppDetails.js"],"names":[],"mappings":";AAOA;;;gBAqBC"}
|
package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppDetails.js
DELETED
|
@@ -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};
|
package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/style.css.js
DELETED
|
@@ -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"}
|
package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/RemoveAppButton.js
DELETED
|
@@ -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};
|
package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialogV2/index.js"],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|