@equinor/amplify-component-lib 9.15.3-beta.1 → 9.16.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms/hooks/index.js +1 -0
- package/dist/atoms/hooks/useAmplifyKit.js +1 -1
- package/dist/atoms/hooks/useFaqsInApplication.js +1 -1
- package/dist/atoms/hooks/useLocalStorage.d.ts +2 -2
- package/dist/atoms/hooks/usePrefetchRichTextImages.js +1 -1
- package/dist/atoms/hooks/useSelect.d.ts +3 -3
- package/dist/atoms/hooks/useSelect.js +1 -1
- package/dist/atoms/index.js +1 -1
- package/dist/atoms/style/index.js +1 -1
- package/dist/atoms/utils/auth_environment.js +1 -1
- package/dist/atoms/utils/date.d.ts +1 -1
- package/dist/atoms/utils/richtext.js +1 -1
- package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.d.ts +2 -2
- package/dist/deprecated/ExpandingIconButton/ExpandingIconButton.js +4 -4
- package/dist/deprecated/IconToggleButton.d.ts +2 -2
- package/dist/deprecated/IconToggleButton.js +1 -1
- package/dist/deprecated/OldStepper/OldStep.js +3 -3
- package/dist/deprecated/OldStepper/OldStepLine.js +2 -2
- package/dist/deprecated/OldStepper/OldStepper.js +3 -3
- package/dist/index.d.ts +4 -4
- package/dist/index.js +1 -1
- package/dist/molecules/ApplicationIcon/ApplicationIcon.js +1 -1
- package/dist/molecules/ApplicationIcon/ApplicationIconBase.js +4 -4
- package/dist/molecules/ApplicationIcon/ApplicationIconCollection.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Acquire.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Adca.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Bravos.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Dasha.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Fallback.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/ForecastFormatter.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/FourDInsight.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/InPress.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/JsEmbark.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/LoggingQualification.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Orca.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Premo.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Pwex.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/Recap.js +1 -1
- package/dist/molecules/ApplicationIcon/Icons/SubsurfacePortal.js +1 -1
- package/dist/molecules/Badge/Badge.js +1 -1
- package/dist/molecules/Banner/Banner.js +1 -1
- package/dist/molecules/Banner/Banner.styles.js +3 -3
- package/dist/molecules/Button/Button.js +3 -3
- package/dist/molecules/Chip/Chip.d.ts +2 -2
- package/dist/molecules/Chip/Chip.js +1 -1
- package/dist/molecules/ContentMenu/ContentMenu.js +1 -1
- package/dist/molecules/DatePicker/DatePicker.d.ts +3 -3
- package/dist/molecules/DatePicker/DatePicker.js +1 -1
- package/dist/molecules/DateRangePicker/DateRangePicker.d.ts +3 -3
- package/dist/molecules/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/molecules/Dialog/Dialog.d.ts +1 -1
- package/dist/molecules/Dialog/Dialog.js +1 -1
- package/dist/molecules/Dialog/Dialog.styles.js +10 -10
- package/dist/molecules/Dialog/DialogAction.js +1 -1
- package/dist/molecules/EquinorLogo/EquinorLogo.d.ts +2 -2
- package/dist/molecules/EquinorLogo/EquinorLogo.js +1 -1
- package/dist/molecules/FileProgress/FileProgress.js +1 -1
- package/dist/molecules/FileUploadArea/FileUploadArea.js +1 -1
- package/dist/molecules/FileUploadArea/FileUploadArea.styles.js +18 -18
- package/dist/molecules/FullPageSpinner/FullPageSpinner.js +8 -8
- package/dist/molecules/IconCell/IconCell.d.ts +54 -0
- package/dist/molecules/IconCell/IconCell.js +1 -0
- package/dist/molecules/IconCell/IconCell.styles.js +108 -0
- package/dist/molecules/IconCell/IconCell.types.d.ts +33 -0
- package/dist/molecules/IconCell/IconCell.types.js +1 -0
- package/dist/molecules/IconCell/IconCell.utils.js +8 -0
- package/dist/molecules/InfoElement/InfoElement.js +1 -1
- package/dist/molecules/ListItem/ListItem.js +13 -13
- package/dist/molecules/OptionDrawer/OptionDrawer.js +1 -1
- package/dist/molecules/OptionalTooltip/OptionalTooltip.d.ts +4 -4
- package/dist/molecules/OptionalTooltip/OptionalTooltip.js +2 -2
- package/dist/molecules/ProfileAvatar/ProfileAvatar.d.ts +2 -2
- package/dist/molecules/ProfileAvatar/ProfileAvatar.js +6 -6
- package/dist/molecules/RichTextDisplay/RichTextDisplay.js +1 -1
- package/dist/molecules/RichTextEditor/EditorProvider.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/AddImageButton.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.d.ts +5 -5
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.js +5 -5
- package/dist/molecules/RichTextEditor/MenuBar/MenuBar.styles.js +4 -4
- package/dist/molecules/RichTextEditor/MenuBar/MenuButton.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/TableColumn.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/TableMerge.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/TableRow.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/Table/ToggleTable.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextClearFormatting.js +2 -2
- package/dist/molecules/RichTextEditor/MenuBar/TextColor.js +4 -4
- package/dist/molecules/RichTextEditor/MenuBar/TextHeaders.js +1 -1
- package/dist/molecules/RichTextEditor/MenuBar/TextLinks.js +2 -2
- package/dist/molecules/RichTextEditor/RichTextEditor.js +1 -1
- package/dist/molecules/RichTextEditor/RichTextEditor.styles.js +23 -23
- package/dist/molecules/RichTextEditor/custom-extensions/ExtendedHeaders.js +1 -1
- package/dist/molecules/RichTextEditor/custom-extensions/ExtendedImage.js +1 -1
- package/dist/molecules/RichTextEditor/index.d.ts +5 -5
- package/dist/molecules/RichTextEditor/index.js +1 -1
- package/dist/molecules/Search/Search.d.ts +2 -2
- package/dist/molecules/Search/Search.js +8 -8
- package/dist/molecules/Select/ComboBox/ComboBox.d.ts +2 -2
- package/dist/molecules/Select/ComboBox/ComboBox.js +1 -1
- package/dist/molecules/Select/Select.styles.d.ts +4 -4
- package/dist/molecules/Select/Select.styles.js +61 -61
- package/dist/molecules/Select/SingleSelect/SingleSelect.d.ts +2 -2
- package/dist/molecules/Select/SingleSelect/SingleSelect.js +1 -1
- package/dist/molecules/SelectionControls/Checkbox/Checkbox.js +1 -1
- package/dist/molecules/SelectionControls/Radio/Radio.js +1 -1
- package/dist/molecules/SelectionControls/SelectionControls.styles.js +24 -24
- package/dist/molecules/SelectionControls/Switch/Switch.js +1 -1
- package/dist/molecules/SingleFilterMenu/SingleFilterMenu.js +9 -9
- package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.d.ts +2 -2
- package/dist/molecules/Skeleton/SkeletonBase/SkeletonBase.js +7 -7
- package/dist/molecules/Skeleton/SkeletonGradient/SkeletonGradient.js +1 -1
- package/dist/molecules/Stepper/Step/Step.js +5 -5
- package/dist/molecules/Stepper/StepLine.js +2 -2
- package/dist/molecules/Stepper/Stepper.js +4 -4
- package/dist/molecules/Tabs/Tab.js +1 -1
- package/dist/molecules/Tabs/Tab.styles.js +22 -22
- package/dist/molecules/Tabs/Tabs.js +4 -4
- package/dist/molecules/Tabs/Tabs.types.d.ts +1 -1
- package/dist/molecules/index.d.ts +5 -5
- package/dist/molecules/index.js +1 -1
- package/dist/organisms/DataGrid/DataGrid.js +6 -6
- package/dist/organisms/Faq/Faq.js +1 -1
- package/dist/organisms/Faq/Faq.styles.js +3 -3
- package/dist/organisms/Faq/Header.js +7 -7
- package/dist/organisms/FieldSelector/ChangingField.js +8 -8
- package/dist/organisms/FieldSelector/FieldSelector.js +3 -3
- package/dist/organisms/FieldSelector/SelectorCard/SelectorCard.js +18 -18
- package/dist/organisms/FieldSelector/SelectorCard/Skeleton.js +6 -6
- package/dist/organisms/Filter/ButtonWithMenu.js +1 -1
- package/dist/organisms/Filter/Filter.js +1 -1
- package/dist/organisms/Filter/Filter.styles.js +39 -39
- package/dist/organisms/Filter/QuickFilter.js +1 -1
- package/dist/organisms/Filter/SortMenu.js +2 -2
- package/dist/organisms/PageTitle/PageTitle.js +1 -1
- package/dist/organisms/ReleaseNote/ReleaseNote.js +12 -12
- package/dist/organisms/ReleaseNote/ToggleExpanded.js +6 -6
- package/dist/organisms/SideBar/SideBar.d.ts +2 -2
- package/dist/organisms/SideBar/index.js +1 -1
- package/dist/organisms/Status/Action.d.ts +2 -2
- package/dist/organisms/Status/Action.js +1 -1
- package/dist/organisms/Status/Description.d.ts +2 -2
- package/dist/organisms/Status/Description.js +1 -1
- package/dist/organisms/Status/Illustration.js +2 -2
- package/dist/organisms/Status/MissingAccesses.d.ts +2 -2
- package/dist/organisms/Status/MissingAccesses.js +4 -4
- package/dist/organisms/Status/Status.js +4 -4
- package/dist/organisms/Status/Title.d.ts +2 -2
- package/dist/organisms/Status/Title.js +1 -1
- package/dist/organisms/Status/collections/ApiResponseError.js +1 -1
- package/dist/organisms/Status/collections/BadRequest.js +2 -2
- package/dist/organisms/Status/collections/GenericError.js +1 -1
- package/dist/organisms/Status/collections/MissingAccessToApp.js +1 -1
- package/dist/organisms/Status/collections/MissingPermissions.js +1 -1
- package/dist/organisms/Status/collections/PageNotFound.js +2 -2
- package/dist/organisms/Status/collections/ServerError.js +2 -2
- package/dist/organisms/TableOfContents/TableOfContents.constants.js +1 -1
- package/dist/organisms/TableOfContents/TableOfContents.js +1 -1
- package/dist/organisms/TableOfContents/TableOfContents.styles.js +32 -32
- package/dist/organisms/TableOfContents/TableOfContentsItem.js +4 -4
- package/dist/organisms/Template/Template.js +7 -7
- package/dist/organisms/ToggleGroup/ToggleGroup.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroup.js +12 -12
- package/dist/organisms/ToggleGroup/ToggleGroupOption.d.ts +2 -2
- package/dist/organisms/ToggleGroup/ToggleGroupOption.js +20 -20
- package/dist/organisms/TopBar/Account/Account.js +1 -1
- package/dist/organisms/TopBar/Account/Account.styles.js +24 -24
- package/dist/organisms/TopBar/Account/AccountAvatar.js +7 -7
- package/dist/organisms/TopBar/Account/AccountButton.js +5 -5
- package/dist/organisms/TopBar/Account/ActiveUserImpersonationButton.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateAvatar.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateButton.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Actions.js +6 -6
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateNewUserButton.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.styles.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/DeleteUser/DeleteUser.styles.js +8 -8
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.constants.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.styles.js +4 -4
- package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/ImpersonateMenu.styles.js +8 -8
- package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.js +6 -6
- package/dist/organisms/TopBar/Account/ImpersonateMenu/UserImpersonation.styles.js +16 -16
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useActiveImpersonationUser.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useAllAppRoles.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useCanImpersonate.js +1 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useGetAllImpersonationUsersForApp.js +1 -1
- package/dist/organisms/TopBar/Account/RoleChips.js +1 -1
- package/dist/organisms/TopBar/Account/RoleList.js +7 -7
- package/dist/organisms/TopBar/Actions.d.ts +2 -2
- package/dist/organisms/TopBar/Actions.js +3 -3
- package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.js +1 -1
- package/dist/organisms/TopBar/ApplicationDrawer/ApplicationDrawer.styles.js +24 -24
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.d.ts +2 -2
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.js +1 -1
- package/dist/organisms/TopBar/FieldMenu/FieldMenu.styles.js +24 -24
- package/dist/organisms/TopBar/Guidelines/Colorbox.d.ts +2 -2
- package/dist/organisms/TopBar/Guidelines/Guidelines.js +1 -1
- package/dist/organisms/TopBar/Guidelines/Item.js +3 -3
- package/dist/organisms/TopBar/Guidelines/Section.js +7 -7
- package/dist/organisms/TopBar/Notifications/FilterOptions.js +6 -6
- package/dist/organisms/TopBar/Notifications/NotificationProvider.d.ts +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsInner.js +3 -3
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/DefaultNotification.js +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ExperienceDue3Weeks.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/MergedBranchOrca.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/NoNotifications.js +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReadyToBePublished.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReadyToReportNotification.js +4 -4
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestChangeOrca.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/RequestReviewOrca.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationElements/ReviewQANotification.js +2 -2
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.js +1 -1
- package/dist/organisms/TopBar/Notifications/NotificationsTemplate/NotificationTemplate.style.js +9 -9
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.const.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.utils.js +7 -7
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Description.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/FeedbackForm.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/LockedInputTooltip.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Severity.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Title.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/Url.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/AnimateChangeInHeight.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/FullSlackResponse.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/RequestStatus.js +2 -2
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponsePage.styles.js +8 -8
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/ResponseStatus.js +1 -1
- package/dist/organisms/TopBar/Resources/Feedback/ResponsePage/Success.js +3 -3
- package/dist/organisms/TopBar/Resources/Feedback/providers/FeedbackContextProvider.js +1 -1
- package/dist/organisms/TopBar/Resources/ResourceMenuItem.js +7 -7
- package/dist/organisms/TopBar/Resources/Resources.js +4 -4
- package/dist/organisms/TopBar/Settings.js +11 -11
- package/dist/organisms/TopBar/TopBar.js +1 -1
- package/dist/organisms/TopBar/TopBar.styles.js +22 -22
- package/dist/organisms/TopBar/TopBarMenu.js +4 -4
- package/dist/organisms/TopBar/TransferToAppDialog.js +11 -11
- package/dist/organisms/TopBar/Tutorials/TutorialItem.js +8 -8
- package/dist/organisms/TopBar/Tutorials/Tutorials.js +1 -1
- package/dist/organisms/TopBar/Tutorials/Tutorials.styles.js +6 -6
- package/dist/organisms/index.js +1 -1
- package/dist/providers/LoadingProvider.js +1 -1
- package/dist/providers/ReleaseNotesProvider.js +1 -1
- package/dist/providers/SideBarProvider.js +1 -1
- package/dist/providers/StepperProvider.js +1 -1
- package/dist/providers/TableOfContentsProvider.js +1 -1
- package/dist/providers/ThemeProvider/ThemeProvider.js +1 -1
- package/dist/providers/index.js +1 -0
- package/package.json +3 -3
- package/dist/atoms/hooks/useOnScreenMultiple.js +0 -1
- package/dist/atoms/hooks/useRichTextImage.js +0 -1
- package/dist/atoms/style/animation.js +0 -1
- package/dist/atoms/style/colors.js +0 -1
- package/dist/atoms/style/darkTokens.js +0 -219
- package/dist/atoms/style/lightTokens.js +0 -158
- package/dist/atoms/style/spacingTokens.js +0 -50
- package/dist/atoms/style/spacings.js +0 -1
- package/dist/atoms/utils/skeleton.js +0 -1
- package/dist/molecules/ApplicationIcon/Icons/FluxMaps.js +0 -1
- package/dist/molecules/Badge/Badge.styles.js +0 -17
- package/dist/molecules/Button/Button.utils.js +0 -1
- package/dist/molecules/Chip/Chip.styles.js +0 -65
- package/dist/molecules/Chip/InteractiveChip.js +0 -1
- package/dist/molecules/Chip/ReadOnlyChip.js +0 -1
- package/dist/molecules/ContentMenu/ContentMenu.styles.js +0 -52
- package/dist/molecules/DatePicker/DatePicker.styles.js +0 -63
- package/dist/molecules/EquinorLogo/EquinorLogo.utils.js +0 -1
- package/dist/molecules/FileProgress/CompactFileProgress.js +0 -1
- package/dist/molecules/FileProgress/CompactFileProgress.styles.js +0 -100
- package/dist/molecules/FileProgress/FileProgress.utils.js +0 -1
- package/dist/molecules/FileProgress/RegularFileProgress.js +0 -1
- package/dist/molecules/FileProgress/RegularFileProgress.styles.js +0 -35
- package/dist/molecules/FileUploadArea/FileUploadArea.constants.js +0 -1
- package/dist/molecules/FileUploadArea/UploadIllustration.js +0 -1
- package/dist/molecules/InfoElement/CopyText.js +0 -41
- package/dist/molecules/ListItem/ListItem.utils.js +0 -1
- package/dist/molecules/OptionDrawer/OptionDrawer.styles.js +0 -36
- package/dist/molecules/OptionDrawer/OptionDrawer.utils.js +0 -1
- package/dist/molecules/Select/AddTagItem.js +0 -1
- package/dist/molecules/Select/GroupedSelectMenu.js +0 -1
- package/dist/molecules/Select/ListSelectMenu.js +0 -1
- package/dist/molecules/Select/Select.js +0 -1
- package/dist/molecules/Select/Select.utils.js +0 -1
- package/dist/molecules/Select/SelectMenuItem.js +0 -1
- package/dist/molecules/Select/SelectMenuItem.utils.js +0 -1
- package/dist/molecules/Sieve/Filter.d.ts +0 -10
- package/dist/molecules/Sieve/Filter.js +0 -1
- package/dist/molecules/Sieve/Sieve.d.ts +0 -7
- package/dist/molecules/Sieve/Sieve.js +0 -1
- package/dist/molecules/Sieve/Sieve.styles.js +0 -43
- package/dist/molecules/Sieve/Sieve.types.d.ts +0 -26
- package/dist/molecules/Sieve/Sort.js +0 -1
- package/dist/molecules/Skeleton/Skeleton.styles.js +0 -1
- package/dist/molecules/Skeleton/SkeletonField.js +0 -8
- package/dist/molecules/Stepper/Step/StepIcon.js +0 -19
- package/dist/molecules/Stepper/SubTitle/SubStepIndicator.js +0 -25
- package/dist/molecules/Stepper/SubTitle/SubTitle.js +0 -7
- package/dist/molecules/TextField/TextField.js +0 -74
- package/dist/organisms/Faq/Category/Category.js +0 -9
- package/dist/organisms/Faq/Category/Question.js +0 -22
- package/dist/organisms/Faq/CategorySkeleton.js +0 -29
- package/dist/organisms/Filter/AutoCompleteMenu.js +0 -10
- package/dist/organisms/Filter/AutoCompleteText.js +0 -11
- package/dist/organisms/Filter/Filter.utils.js +0 -1
- package/dist/organisms/ReleaseNote/MetaTags.js +0 -10
- package/dist/organisms/SideBar/CreateItem.js +0 -1
- package/dist/organisms/SideBar/CreateItem.styles.js +0 -33
- package/dist/organisms/SideBar/MenuItem/BasicMenuItem.js +0 -1
- package/dist/organisms/SideBar/MenuItem/CollapsableMenuItem.js +0 -48
- package/dist/organisms/SideBar/MenuItem/MenuItem.js +0 -1
- package/dist/organisms/SideBar/MenuItem/MenuItem.styles.js +0 -37
- package/dist/organisms/SideBar/MenuItem/MenuItem.utils.js +0 -1
- package/dist/organisms/SideBar/SideBar.js +0 -1
- package/dist/organisms/SideBar/SideBar.styles.js +0 -41
- package/dist/organisms/SideBar/ToggleOpen.js +0 -1
- package/dist/organisms/SideBar/ToggleOpen.styles.js +0 -16
- package/dist/organisms/Status/Illustration.constants.js +0 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/Impersonate.utils.js +0 -1
- package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useStartImpersonation.js +0 -1
- package/dist/organisms/TopBar/Resources/Feedback/Feedback.styles.js +0 -41
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/ImageFile.js +0 -7
- package/dist/organisms/TopBar/Resources/Feedback/FeedbackForm/UploadFile/UploadFile.styles.js +0 -79
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.js +0 -1
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/Header/Header.styles.js +0 -7
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.js +0 -1
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.styles.js +0 -19
- package/dist/organisms/TopBar/Resources/ReleaseNotesDialog/ReleaseNotesDialog.utils.js +0 -1
- package/dist/providers/AuthProvider/AuthProvider.js +0 -1
- package/dist/providers/AuthProvider/AuthProviderInner.js +0 -1
- package/dist/providers/ReleaseNotesProvider.utils.js +0 -1
- package/dist/providers/SnackbarProvider/SnackbarProvider.js +0 -1
- package/dist/providers/SnackbarProvider/SnackbarProvider.styles.js +0 -41
- package/dist/providers/SnackbarProvider/SnackbarProvider.utils.js +0 -1
- package/dist/providers/TableOfContentsProvider.utils.js +0 -1
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.constants.js +0 -1
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProvider.js +0 -1
- package/dist/providers/TutorialHighlightingProvider/TutorialHighlightingProviderInner.js +0 -24
- package/dist/providers/TutorialHighlightingProvider/TutorialPopover/StepIndicator.js +0 -20
- package/dist/providers/TutorialHighlightingProvider/TutorialPopover/TutorialPopover.js +0 -75
- package/dist/providers/TutorialHighlightingProvider/TutorialPopover/hooks/useTutorialPopoverPosition.js +0 -1
- package/dist/providers/TutorialHighlightingProvider/hooks/useReversedScrollY.js +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useActiveImpersonationUser as e}from"./hooks/useActiveImpersonationUser.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{spacings as r}from"src/atoms/style/spacings";import i from"styled-components";import{Button as a,DotProgress as o,Typography as s}from"@equinor/eds-core-react";import{useStartImpersonation as c}from"src/organisms/TopBar/Account/ImpersonateMenu/hooks/useStartImpersonation";const l=i.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
|
-
gap: ${
|
|
5
|
-
padding: ${
|
|
4
|
+
gap: ${r.medium};
|
|
5
|
+
padding: ${r.medium};
|
|
6
6
|
width: 25rem;
|
|
7
|
-
`,u=
|
|
7
|
+
`,u=i.section`
|
|
8
8
|
display: flex;
|
|
9
9
|
justify-content: flex-end;
|
|
10
|
-
gap: ${
|
|
11
|
-
`,d=({selectedUniqueName:
|
|
10
|
+
gap: ${r.small};
|
|
11
|
+
`,d=({selectedUniqueName:r,onCancel:i})=>{let{data:d}=e(),{mutateAsync:f,isPending:p}=c(),m=async()=>{await f(r),i()};return n(l,{children:[t(s,{variant:`body_short`,children:`By selecting a user to impersonate, you will view the contents of this app as if you would be that user.`}),n(u,{children:[t(a,{variant:`outlined`,onClick:i,children:`Cancel`}),p?t(a,{children:t(o,{})}):t(a,{onClick:m,disabled:r===``||r===d?.uniqueName,children:`Impersonate`})]})]})};export{d as Actions};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{
|
|
1
|
+
import{tokens as e}from"../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{jsx as t,jsxs as n}from"react/jsx-runtime";import{exit_to_app as r}from"@equinor/eds-icons";import i from"styled-components";import{Icon as a,Typography as o}from"@equinor/eds-core-react";import{animation as s,spacings as c}from"src/atoms/style";const{colors:l}=e,u=i.button`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: 1fr auto;
|
|
4
4
|
align-items: center;
|
|
5
|
-
padding: ${
|
|
6
|
-
transition: background ${
|
|
5
|
+
padding: ${c.medium};
|
|
6
|
+
transition: background ${s.transitionMS};
|
|
7
7
|
border-top: 1px solid ${l.ui.background__medium.rgba};
|
|
8
8
|
border-bottom: 1px solid ${l.ui.background__medium.rgba};
|
|
9
9
|
&:hover {
|
|
10
10
|
background: ${l.interactive.primary__hover_alt.rgba};
|
|
11
11
|
}
|
|
12
|
-
`,d=({onClick:e})=>
|
|
12
|
+
`,d=({onClick:e})=>n(u,{onClick:e,children:[n(`div`,{children:[t(o,{variant:`overline`,children:`Missing a persona?`}),t(o,{variant:`h6`,children:`Create users to impersonate`})]}),t(a,{color:l.interactive.primary__resting.rgba,data:r})]});export{d as CreateNewUserButton};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useCreateImpersonation as e}from"../hooks/useCreateImpersonation.js";import{useEditImpersonation as t}from"../hooks/useEditImpersonation.js";import{Header as n}from"../Impersonate.styles.js";import{Container as r,Section as i}from"./CreateOrEditUser.styles.js";import{useEffect as a,useMemo as o,useRef as s,useState as c}from"react";import{jsx as l,jsxs as u}from"react/jsx-runtime";import{environment as d}from"src/atoms/utils/auth_environment";import{arrow_back as f}from"@equinor/eds-icons";import{Button as p,DotProgress as m,Icon as h,Typography as g}from"@equinor/eds-core-react";import{TextField as _}from"src/molecules/TextField/TextField";import{SingleSelect as v}from"src/molecules/Select/SingleSelect/SingleSelect";import{ComboBox as y}from"src/molecules/Select/ComboBox/ComboBox";import{useAllAppRoles as b}from"src/organisms/TopBar/Account/ImpersonateMenu/hooks/useAllAppRoles";const x=({editingUser:x,onBack:S,availableFields:C,availableWells:w})=>{let T=s(!1),[E,D]=c([]),[O,k]=c(``),[A,j]=c(``),[M,N]=c(``),[P,F]=c(void 0),[I,L]=c(void 0),{data:R,isLoading:z}=b();a(()=>{if(x&&R&&!T.current){if(T.current=!0,D(x.roles.map(e=>{let t=R.find(t=>t.value===e);return t?{value:e,label:t.displayName}:{value:e,label:e}})),C){let e=C.find(e=>e.uuid==x.field)?.name??void 0;F(e)}if(w){let e=w.find(e=>e==x.well)??void 0;L(e)}k(x.firstName),j(x.lastName),N(x.email??``)}},[R,x,T,C,w]);let B=o(()=>R?.map(e=>({value:e.value,label:e.displayName}))??[],[R]),V=C?.map(e=>({value:e.uuid??``,label:e.name??``}))??[],H=w?.map(e=>({value:e,label:e}))??[],{mutateAsync:U,isPending:W}=e(),{mutateAsync:G,isPending:K}=t(),q=W||K,J=o(()=>O===``||A===``||E.length===0,[O,A,E.length]),Y=e=>{k(e.target.value)},X=e=>{j(e.target.value)},Z=e=>{N(e.target.value)},Q=e=>{D(e)},$=e=>{F(e?.value)},ee=e=>{L(e?.value)},te=async()=>{x?(await G({id:x.id,firstName:O,lastName:A,fullName:`${O} ${A}`,email:M===``?void 0:M,field:P,well:I,roles:E.map(e=>e.value).sort(),uniqueName:x.uniqueName,appName:x.appName,activeUsers:[]}),S()):(await U({firstName:O,lastName:A,field:P,well:I,email:M===``?void 0:M,roles:E.map(e=>e.value).sort(),uniqueName:`${O}.${A}`.toLowerCase(),appName:d.getAppName(import.meta.env.VITE_NAME),activeUsers:[]}),S())};return u(r,{children:[u(n,{children:[l(p,{variant:`ghost_icon`,onClick:S,children:l(h,{data:f})}),l(g,{variant:`h6`,children:x?`Edit user`:`Create new user`})]}),u(i,{children:[l(_,{id:`first-name`,label:`First name`,placeholder:`Add first name...`,value:O,onChange:Y}),l(_,{id:`last-name`,label:`Last name`,placeholder:`Add last name...`,value:A,onChange:X}),l(_,{id:`email`,label:`E-mail`,placeholder:`Add e-mail...`,meta:`Optional`,value:M,onChange:Z})]}),u(i,{children:[V&&V.length>0&&l(v,{placeholder:`Select field...`,label:`Field`,meta:`Optional (For internal application role purposes)`,value:V.find(e=>e.value===P),onSelect:$,items:V}),H&&H.length>0&&l(v,{label:`Well`,placeholder:`Select well...`,meta:`Optional (For internal application role purposes)`,value:H.find(e=>e.value===I),onSelect:ee,items:H})]}),l(i,{children:l(y,{label:`Roles`,placeholder:`Select roles...`,values:E,onSelect:Q,items:B,loading:z})}),u(i,{children:[l(p,{variant:`outlined`,onClick:S,children:`Cancel`}),q?l(p,{children:l(m,{})}):l(p,{onClick:te,disabled:J,children:x?`Save`:`Create`})]})]})};export{x as CreateOrEditUser};
|
package/dist/organisms/TopBar/Account/ImpersonateMenu/CreateOrEditUser/CreateOrEditUser.styles.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{spacings as t}from"
|
|
1
|
+
import{tokens as e}from"../../../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{spacings as t}from"src/atoms/style/spacings";import n from"styled-components";const{colors:r}=e,i=n.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
gap: ${t.medium};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Header as e}from"../Impersonate.styles.js";import{useDeleteImpersonation as t}from"../hooks/useDeleteImpersonation.js";import{Container as n}from"./DeleteUser.styles.js";import{jsx as r,jsxs as i}from"react/jsx-runtime";import{useSnackbar as a}from"src/providers/SnackbarProvider/SnackbarProvider";import{arrow_back as o,delete_to_trash as s}from"@equinor/eds-icons";import{DotProgress as c,Icon as l,Typography as u}from"@equinor/eds-core-react";import{colors as d}from"src/atoms/style";import{Button as f}from"src/molecules/Button/Button";import{RoleChip as p,RolesContainer as m,TextContent as h}from"src/organisms/TopBar/Account/Account.styles";import{ImpersonateAvatar as g}from"src/organisms/TopBar/Account/ImpersonateAvatar";const _=({user:_,onBack:v})=>{let{mutateAsync:y,isPending:b}=t(),{showSnackbar:x}=a(),S=`${_.firstName} ${_.lastName}`,C=async()=>{await y(_),x(`Deleted user "${S}" successfully`),v()};return i(n,{children:[i(e,{children:[r(f,{variant:`ghost_icon`,onClick:v,children:r(l,{data:o})}),r(u,{variant:`h6`,children:`Delete user`})]}),i(`section`,{children:[r(u,{variant:`h4`,children:`You are deleting a user`}),i(u,{variant:`caption`,color:d.text.static_icons__tertiary.rgba,children:[`Are you sure you want to delete user "`,S,`"?`]})]}),r(g,{size:64,fullName:S}),i(h,{children:[r(u,{variant:`h6`,children:S}),r(u,{children:_.uniqueName})]}),r(m,{children:_.roles.map(e=>r(p,{children:e},e))}),i(`div`,{children:[b?r(f,{variant:`outlined`,color:`danger`,children:r(c,{color:`tertiary`})}):i(f,{variant:`outlined`,color:`danger`,onClick:C,children:[r(l,{data:s}),` Delete user`]}),r(f,{variant:`ghost`,onClick:v,children:`Cancel`})]})]})};export{_ as DeleteUser};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import{spacings as
|
|
1
|
+
import e from"styled-components";import{spacings as t}from"src/atoms/style";const n=e.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
min-width: 20rem;
|
|
5
5
|
> section:nth-child(2) {
|
|
6
|
-
margin-top: ${
|
|
6
|
+
margin-top: ${t.medium};
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
align-items: center;
|
|
10
|
-
padding: 0 ${
|
|
11
|
-
margin-bottom: ${
|
|
10
|
+
padding: 0 ${t.medium};
|
|
11
|
+
margin-bottom: ${t.medium};
|
|
12
12
|
}
|
|
13
13
|
> section:nth-child(5) {
|
|
14
14
|
max-width: unset;
|
|
15
|
-
margin-bottom: ${
|
|
16
|
-
padding: 0 ${
|
|
15
|
+
margin-bottom: ${t.large};
|
|
16
|
+
padding: 0 ${t.medium};
|
|
17
17
|
}
|
|
18
18
|
> div:nth-child(3) {
|
|
19
19
|
align-self: center;
|
|
@@ -21,7 +21,7 @@ import{spacings as e}from"../../../../../atoms/style/spacings.js";import t from"
|
|
|
21
21
|
> div:last-child {
|
|
22
22
|
display: flex;
|
|
23
23
|
flex-direction: column;
|
|
24
|
-
gap: ${
|
|
25
|
-
padding: 0 ${
|
|
24
|
+
gap: ${t.x_small};
|
|
25
|
+
padding: 0 ${t.medium};
|
|
26
26
|
}
|
|
27
27
|
`;export{n as Container};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=`activeImpersonationUser`,t=`createImpersonation`,n=`
|
|
1
|
+
const e=`activeImpersonationUser`,t=`createImpersonation`,n=`getImpersonationUsers`,r=`canImpersonate`,i=`stopImpersonation`,a=`availableRoles`,o=[e,t,`setActiveImpersonation`,n,r,i,a],s={predicate:e=>{for(let t of e.queryKey)if(o.some(e=>e===t))return!1;return!0}};export{e as ACTIVE_USERIMPERSONATION,a as AVAILABLE_ROLES,r as CAN_IMPERSONATE,t as CREATE_IMPERSONATION,n as GET_ALL_IMPERSONATIONS,s as IMPERSONATE_QUERY_FILTER,i as STOP_IMPERSONATION};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"styled-components";import{colors as t,spacings as n}from"src/atoms/style";const r=e.header`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
|
-
gap: ${
|
|
5
|
-
padding: 0 ${
|
|
6
|
-
border-bottom: 1px solid ${
|
|
4
|
+
gap: ${n.medium};
|
|
5
|
+
padding: 0 ${n.small} ${n.small};
|
|
6
|
+
border-bottom: 1px solid ${t.ui.background__medium.rgba};
|
|
7
7
|
`;export{r as Header};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useActiveImpersonationUser as e}from"./hooks/useActiveImpersonationUser.js";import{CreateOrEditUser as t}from"./CreateOrEditUser/CreateOrEditUser.js";import{DeleteUser as n}from"./DeleteUser/DeleteUser.js";import{useGetAllImpersonationUsersForApp as r}from"./hooks/useGetAllImpersonationUsersForApp.js";import{Actions as i}from"./Actions.js";import{CreateNewUserButton as a}from"./CreateNewUserButton.js";import{Content as o,Header as s,NoUsersText as c}from"./ImpersonateMenu.styles.js";import{UserImpersonation as l}from"./UserImpersonation.js";import{useEffect as u,useState as d}from"react";import{jsx as f,jsxs as p}from"react/jsx-runtime";import{Menu as m,Typography as h}from"@equinor/eds-core-react";import{impersonateUserDtoToFullName as g}from"src/organisms/TopBar/Account/ImpersonateMenu/Impersonate.utils";import{Search as _}from"src/molecules/Search/Search";const v=({open:v,onClose:y,anchorEl:b,availableFields:x,availableWells:S})=>{let[C,w]=d(!1),[T,E]=d(void 0),[D,O]=d(void 0),[k,A]=d(``),[j,M]=d(``),{data:N}=r(),{data:P}=e(),F=N?.filter(e=>g(e).toLowerCase().includes(j.toLowerCase()));u(()=>{!v&&P&&k!==P.uniqueName?A(P.uniqueName):!v&&!P&&k!==``&&A(``)},[P,v,k]);let I=()=>{y()},L=()=>w(!0),R=()=>{w(!1),T&&E(void 0)},z=()=>{w(!1),T&&E(void 0),I()},B=e=>{E(N?.find(t=>t.uniqueName===e)),w(!0)},V=e=>{O(N?.find(t=>t.uniqueName===e))},H=()=>{O(void 0)},U=e=>{M(e.target.value)};return v?C?f(m,{open:!0,anchorEl:b,onClose:z,placement:`bottom-end`,style:{width:`400px`},children:f(t,{editingUser:T,onBack:R,availableFields:x,availableWells:S})}):D?f(m,{open:!0,anchorEl:b,onClose:z,placement:`bottom-end`,style:{width:`400px`},children:f(n,{user:D,onBack:H})}):p(m,{open:!0,anchorEl:b,onClose:I,placement:`bottom-end`,style:{width:`400px`},children:[p(s,{children:[f(h,{variant:`h6`,children:`Impersonate`}),f(h,{variant:`caption`,children:`Select a user to impersonate`}),f(_,{placeholder:`Search users`,value:j,onChange:U})]}),f(o,{children:F&&F.length>0?F?.map(e=>f(l,{...e,selected:k===e.uniqueName,onClick:A,onEdit:B,onDelete:V},e.uniqueName)):f(c,{children:`No items found`})}),f(a,{onClick:L}),f(i,{selectedUniqueName:k,onCancel:y})]}):null};export{v as ImpersonateMenu};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
padding: ${
|
|
1
|
+
import e from"styled-components";import{Typography as t}from"@equinor/eds-core-react";import{colors as n,spacings as r}from"src/atoms/style";const i=e.header`
|
|
2
|
+
padding: ${r.medium};
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
|
-
border-bottom: 1px solid ${
|
|
5
|
+
border-bottom: 1px solid ${n.ui.background__medium.rgba};
|
|
6
6
|
> div:has(input) {
|
|
7
|
-
margin-top: ${
|
|
7
|
+
margin-top: ${r.medium};
|
|
8
8
|
}
|
|
9
|
-
`,a=
|
|
9
|
+
`,a=e.section`
|
|
10
10
|
overflow: auto;
|
|
11
11
|
max-height: 15rem;
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: column;
|
|
14
|
-
`,o=
|
|
15
|
-
color: ${
|
|
16
|
-
margin: ${
|
|
14
|
+
`,o=e(t)`
|
|
15
|
+
color: ${n.text.static_icons__tertiary.rgba};
|
|
16
|
+
margin: ${r.medium} auto ${r.medium} ${r.medium};
|
|
17
17
|
`;export{a as Content,i as Header,o as NoUsersText};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useMappedRoles as e}from"./hooks/useMappedRoles.js";import{Container as t,RoleChip as n,RoleChipContainer as r}from"./UserImpersonation.styles.js";import{useRef as i,useState as a}from"react";import{Fragment as o,jsx as s,jsxs as c}from"react/jsx-runtime";import{colors as l}from"src/atoms/style/colors";import{account_circle as u,check as d,delete_to_trash as f,edit as p,more_horizontal as m}from"@equinor/eds-icons";import h from"styled-components";import{Button as g,Icon as _,Menu as v,Typography as y}from"@equinor/eds-core-react";import{OptionalTooltip as b}from"src/molecules/OptionalTooltip/OptionalTooltip";import{ListItem as x}from"src/molecules/ListItem/ListItem";import{impersonateUserDtoToFullName as S}from"src/organisms/TopBar/Account/ImpersonateMenu/Impersonate.utils";const C=h(x)`
|
|
2
2
|
svg {
|
|
3
|
-
fill: ${
|
|
3
|
+
fill: ${l.interactive.danger__resting.rgba};
|
|
4
4
|
}
|
|
5
5
|
p {
|
|
6
|
-
color: ${
|
|
6
|
+
color: ${l.interactive.danger__resting.rgba};
|
|
7
7
|
}
|
|
8
8
|
&:disabled {
|
|
9
9
|
svg {
|
|
10
|
-
fill: ${
|
|
10
|
+
fill: ${l.interactive.disabled__text.rgba};
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
&:hover:not(:disabled) {
|
|
14
|
-
background: ${
|
|
14
|
+
background: ${l.interactive.danger__highlight.rgba};
|
|
15
15
|
}
|
|
16
|
-
`,w=({firstName:
|
|
16
|
+
`,w=({firstName:h,lastName:w,uniqueName:T,roles:E,activeUsers:D,selected:O,onClick:k,onEdit:A,onDelete:j})=>{let[M,N]=a(!1),P=i(null),F=S({firstName:h,lastName:w}),I=e(E),L=()=>N(e=>!e),R=()=>N(!1),z=e=>{e.target!==P.current&&k(T)},B=()=>{A(T),R()},V=()=>{j(T),R()};return c(o,{children:[c(t,{$selected:O,onClick:z,"data-testid":`impersonation-user`,children:[s(_,{color:l.text.static_icons__tertiary.rgba,data:u}),s(b,{title:F,placement:`top`,children:s(y,{"data-testid":`name`,children:F})}),c(r,{$selected:O,children:[s(b,{title:I.at(0)?.label,placement:`top`,children:s(n,{"data-testid":`role`,children:I[0].label})}),I.length>1&&s(b,{title:I.slice(1).map(e=>e.label).join(`, `),children:s(n,{"data-testid":`additional-roles`,children:`+${I.length-1}`})})]}),O&&s(_,{data:d,color:l.interactive.primary__resting.rgba}),s(g,{variant:`ghost_icon`,ref:P,onClick:L,children:s(_,{data:m})})]}),M&&c(v,{open:!0,anchorEl:P.current,placement:`right-start`,onClose:R,children:[s(x,{label:`Edit user`,onClick:B,leadingContent:p}),s(b,{title:D.length>0?`Cannot delete user with active sessions`:void 0,children:s(C,{label:`Delete user`,onClick:V,disabled:D.length>0,leadingContent:f})})]})]})};export{w as UserImpersonation};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import e,{css as t}from"styled-components";import{animation as n,colors as r,spacings as i}from"src/atoms/style";import{Chip as a}from"src/molecules/Chip/Chip";const o=e.div`
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: minmax(auto, 1fr) auto 1fr 24px 36px;
|
|
4
4
|
align-items: center;
|
|
5
|
-
gap: ${
|
|
6
|
-
height: calc(32px + ${
|
|
5
|
+
gap: ${i.small};
|
|
6
|
+
height: calc(32px + ${i.medium} * 2);
|
|
7
7
|
flex-shrink: 0;
|
|
8
|
-
padding: 0 ${
|
|
9
|
-
background: ${({$selected:e})=>e?
|
|
10
|
-
transition: background ${
|
|
8
|
+
padding: 0 ${i.medium};
|
|
9
|
+
background: ${({$selected:e})=>e?r.interactive.primary__selected_highlight.rgba:`transparent`};
|
|
10
|
+
transition: background ${n.transitionMS};
|
|
11
11
|
|
|
12
12
|
&:hover {
|
|
13
13
|
cursor: pointer;
|
|
14
|
-
background: ${({$selected:e})=>e?
|
|
14
|
+
background: ${({$selected:e})=>e?r.interactive.primary__selected_hover.rgba:r.interactive.primary__hover_alt.rgba};
|
|
15
15
|
}
|
|
16
16
|
> p {
|
|
17
17
|
white-space: nowrap;
|
|
@@ -24,7 +24,7 @@ import{animation as e}from"../../../../atoms/style/animation.js";import{colors a
|
|
|
24
24
|
> button {
|
|
25
25
|
grid-column: 5;
|
|
26
26
|
}
|
|
27
|
-
`,s=
|
|
27
|
+
`,s=e(a)`
|
|
28
28
|
&,
|
|
29
29
|
div,
|
|
30
30
|
span {
|
|
@@ -35,17 +35,17 @@ import{animation as e}from"../../../../atoms/style/animation.js";import{colors a
|
|
|
35
35
|
}
|
|
36
36
|
height: fit-content;
|
|
37
37
|
padding: 0;
|
|
38
|
-
color: ${
|
|
39
|
-
background: ${
|
|
40
|
-
`,c=
|
|
38
|
+
color: ${r.text.static_icons__primary_white.rgba};
|
|
39
|
+
background: ${r.text.static_icons__tertiary.rgba};
|
|
40
|
+
`,c=e.div`
|
|
41
41
|
display: flex;
|
|
42
42
|
align-items: center;
|
|
43
|
-
gap: ${
|
|
44
|
-
${({$selected:e})=>e?
|
|
43
|
+
gap: ${i.small};
|
|
44
|
+
${({$selected:e})=>e?t`
|
|
45
45
|
> div {
|
|
46
|
-
background: ${
|
|
47
|
-
color: ${
|
|
48
|
-
outline-color: ${
|
|
46
|
+
background: ${r.interactive.primary__resting.rgba};
|
|
47
|
+
color: ${r.text.static_icons__primary_white.rgba};
|
|
48
|
+
outline-color: ${r.interactive.primary__resting.rgba};
|
|
49
49
|
}
|
|
50
50
|
`:``}
|
|
51
51
|
`;export{o as Container,s as RoleChip,c as RoleChipContainer};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{ACTIVE_USERIMPERSONATION as e}from"../Impersonate.constants.js";import{ApiError as t,ImpersonateUserService as n}from"@equinor/subsurface-app-management";import{useQuery as r}from"@tanstack/react-query";import{environment as i}from"src/atoms/utils/auth_environment";function a(){return r({queryKey:[e],queryFn:async()=>{try{let e=await n.getActiveUser();return e===void 0?null:e}catch(e){if(e instanceof t&&(e.status===204||e.status===404))return null}},enabled:i.getEnvironmentName(import.meta.env.VITE_ENVIRONMENT_NAME)!==`production`})}export{a as useActiveImpersonationUser};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{AVAILABLE_ROLES as e}from"../Impersonate.constants.js";import{AmplifyApplicationService as t}from"@equinor/subsurface-app-management";import{useQuery as n}from"@tanstack/react-query";import{environment as r}from"src/atoms/utils/auth_environment";function i(i=!0){return n({queryKey:[e],queryFn:()=>t.getAllAppRoles(r.getApiClientId(import.meta.env.VITE_API_CLIENT_ID)),enabled:i&&!!r.getApiClientId(import.meta.env.VITE_API_CLIENT_ID),staleTime:1/0,gcTime:1/0})}export{i as useAllAppRoles};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{CAN_IMPERSONATE as e}from"../Impersonate.constants.js";import{ImpersonateUserService as t}from"@equinor/subsurface-app-management";import{useQuery as n}from"@tanstack/react-query";import{environment as r}from"src/atoms/utils/auth_environment";function i(){return n({queryKey:[e],queryFn:()=>t.canImpersonate(),enabled:r.getEnvironmentName(import.meta.env.VITE_ENVIRONMENT_NAME)!==`production`})}export{i as useCanImpersonate};
|
package/dist/organisms/TopBar/Account/ImpersonateMenu/hooks/useGetAllImpersonationUsersForApp.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{GET_ALL_IMPERSONATIONS as e}from"../Impersonate.constants.js";import{ImpersonateUserService as t}from"@equinor/subsurface-app-management";import{useQuery as n}from"@tanstack/react-query";import{environment as r}from"src/atoms/utils/auth_environment";function i(){return n({queryKey:[e],queryFn:async()=>await t.getApiV1ImpersonateUserGetImpersonateUserForApp(r.getAppName(import.meta.env.VITE_NAME)),enabled:r.getEnvironmentName(import.meta.env.VITE_ENVIRONMENT_NAME)!==`production`})}export{i as useGetAllImpersonationUsersForApp};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{RoleChip as t,RolesContainer as n}from"src/organisms/TopBar/Account/Account.styles";const r=({roles:r})=>e(n,{children:r.map(n=>e(t,{children:n.label},n.value))});export{r as RoleChips};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsx as e,jsxs as t}from"react/jsx-runtime";import n from"styled-components";import{Divider as r,Typography as i}from"@equinor/eds-core-react";import{colors as a,spacings as o}from"src/atoms/style";const s=n.div`
|
|
2
2
|
margin-top: calc(
|
|
3
|
-
${
|
|
3
|
+
${o.medium} - ${o.small}
|
|
4
4
|
); // small is the flex gap above this component
|
|
5
5
|
display: grid;
|
|
6
6
|
grid-template-rows: auto auto 1fr auto;
|
|
7
7
|
width: 100%;
|
|
8
8
|
> hr {
|
|
9
|
-
margin: ${
|
|
9
|
+
margin: ${o.small} 0;
|
|
10
10
|
}
|
|
11
|
-
`,c=
|
|
11
|
+
`,c=n.ul`
|
|
12
12
|
max-height: 135px;
|
|
13
13
|
margin: 0;
|
|
14
14
|
overflow-y: auto;
|
|
15
|
-
padding: 0 ${
|
|
15
|
+
padding: 0 ${o.small} 0 ${o.large};
|
|
16
16
|
list-style: square;
|
|
17
17
|
> li::marker {
|
|
18
|
-
color: ${
|
|
18
|
+
color: ${a.text.static_icons__secondary.rgba};
|
|
19
19
|
}
|
|
20
|
-
`,l=({roles:
|
|
20
|
+
`,l=({roles:n})=>t(s,{children:[e(i,{variant:`h6`,children:`App Access`}),e(r,{}),e(c,{children:n.toSorted((e,t)=>e.label.localeCompare(t.label)).map(t=>e(i,{variant:`body_long`,color:a.text.static_icons__secondary.rgba,as:`li`,children:t.label},t.value))}),e(r,{})]});export{l as RoleList};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react110 from "react";
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/TopBar/Actions.d.ts
|
|
5
|
-
declare const Actions:
|
|
5
|
+
declare const Actions: react110.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react110.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
//#endregion
|
|
7
7
|
export { Actions };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{forwardRef as e}from"react";import{jsx as t}from"react/jsx-runtime";import n from"styled-components";import{TopBar as r}from"@equinor/eds-core-react";import{spacings as i}from"src/atoms/style";const a=n(r.Actions)`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
flex-direction: row-reverse;
|
|
5
|
-
gap: ${
|
|
6
|
-
`,o=
|
|
5
|
+
gap: ${i.large};
|
|
6
|
+
`,o=e(({children:e},n)=>t(a,{ref:n,children:e}));o.displayName=`TopBar.Actions`;export{o as Actions};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{TopBarMenu as e}from"../TopBarMenu.js";import{TopBarButton as t}from"../TopBar.styles.js";import{ApplicationBox as n,ApplicationButton as r,ApplicationContent as i,ApplicationName as a,LoadingApplications as o,MenuFixedItem as s,MenuSection as c,NoApplications as l,TextContainer as u}from"./ApplicationDrawer.styles.js";import{useRef as d,useState as f}from"react";import{Fragment as p,jsx as m,jsxs as h}from"react/jsx-runtime";import{AmplifyApplicationService as g}from"@equinor/subsurface-app-management";import{environment as _}from"src/atoms/utils";import{useQuery as v}from"@tanstack/react-query";import{apps as y,exit_to_app as b}from"@equinor/eds-icons";import{DotProgress as x,Icon as S,Typography as C}from"@equinor/eds-core-react";import{colors as w}from"src/atoms/style";import{ApplicationIcon as T}from"src/molecules/ApplicationIcon/ApplicationIcon";import{TransferToAppDialog as E}from"src/organisms/TopBar/TransferToAppDialog";const{getAppName:D,PORTAL_URL_WITHOUT_LOCALHOST:O}=_,k=()=>{let[_,k]=f(!1),[A,j]=f(void 0),[M,N]=f(!1),{data:P=[],isLoading:F}=v({queryKey:[`userApplications`],queryFn:()=>g.userApplications()}),I=d(null),L=()=>k(!_),R=()=>{k(!1),j(void 0)},z=e=>{j(e)},B=()=>{N(!0)};return F?h(p,{children:[m(t,{variant:`ghost_icon`,onClick:L,ref:I,children:m(S,{data:y,size:24})}),m(e,{open:_,title:`Your available applications`,onClose:R,anchorEl:I.current,contentPadding:!1,children:m(p,{children:m(c,{children:m(i,{children:m(o,{children:m(x,{color:`primary`})})})})})})]}):h(p,{children:[m(t,{variant:`ghost`,onClick:L,ref:I,children:m(S,{data:y,size:24})}),m(e,{open:_,title:`Your available applications`,onClose:R,anchorEl:I.current,contentPadding:!1,children:h(p,{children:[h(c,{children:[P.length===0?m(l,{children:m(C,{group:`paragraph`,variant:`body_short`,style:{color:w.text.static_icons__tertiary.rgba},children:`You don't have access to other applications`})}):m(C,{group:`paragraph`,variant:`overline`,children:`SWITCH BETWEEN APPS`}),m(i,{children:m(p,{children:P.map((e,t)=>{let i=D(import.meta.env.VITE_NAME)===e.name;return m(n,{$isSelected:i,"data-testid":`application-box-${e.name}`,children:h(r,{variant:`ghost_icon`,onClick:()=>z(e),"data-testid":e.name,children:[m(T,{name:e.name.toLowerCase(),size:36}),m(a,{children:m(C,{group:`paragraph`,variant:`caption`,children:e.name})})]})},t)})})})]}),m(s,{"data-testid":`access-it-link`,onClick:B,children:h(`div`,{children:[h(u,{children:[m(C,{variant:`overline`,children:`Access to more applications?`}),m(C,{variant:`h6`,children:`Go to Application Portal`})]}),m(S,{data:b,color:w.interactive.primary__resting.rgba,size:24})]})})]})}),M&&m(E,{onClose:R,applicationName:`Portal`,url:O}),A&&m(E,{onClose:R,applicationName:A.name,url:A.url})]})};export{k as ApplicationDrawer};
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
border-bottom: 1px solid ${
|
|
1
|
+
import e from"styled-components";import{Button as t}from"@equinor/eds-core-react";import{colors as n,shape as r,spacings as i}from"src/atoms/style";const a=e.div`
|
|
2
|
+
border-bottom: 1px solid ${n.ui.background__light.rgba};
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
|
|
6
|
-
padding: ${
|
|
7
|
-
${
|
|
6
|
+
padding: ${i.small} ${i.medium} ${i.medium}
|
|
7
|
+
${i.medium};
|
|
8
8
|
> p {
|
|
9
|
-
margin-left: ${
|
|
9
|
+
margin-left: ${i.small};
|
|
10
10
|
}
|
|
11
|
-
`,o=
|
|
11
|
+
`,o=e.div`
|
|
12
12
|
display: flex;
|
|
13
13
|
align-items: flex-start;
|
|
14
14
|
> p {
|
|
15
15
|
text-align: center;
|
|
16
16
|
}
|
|
17
|
-
`,s=
|
|
17
|
+
`,s=e.div`
|
|
18
18
|
display: grid;
|
|
19
19
|
grid-template-columns: 1fr 1fr 1fr;
|
|
20
|
-
padding-top: ${
|
|
20
|
+
padding-top: ${i.small};
|
|
21
21
|
justify-items: center;
|
|
22
|
-
gap: ${
|
|
23
|
-
`,c=
|
|
22
|
+
gap: ${i.small};
|
|
23
|
+
`,c=e.div`
|
|
24
24
|
> div {
|
|
25
25
|
display: grid;
|
|
26
26
|
grid-template-columns: 1fr 24px;
|
|
@@ -28,42 +28,42 @@ import{colors as e}from"../../../atoms/style/colors.js";import{spacings as t}fro
|
|
|
28
28
|
width: 100%;
|
|
29
29
|
}
|
|
30
30
|
&:hover {
|
|
31
|
-
background: ${
|
|
31
|
+
background: ${n.interactive.primary__selected_hover.rgba};
|
|
32
32
|
cursor: pointer;
|
|
33
33
|
}
|
|
34
|
-
border-top: 1px solid ${
|
|
34
|
+
border-top: 1px solid ${n.ui.background__light.rgba};
|
|
35
35
|
outline: none !important;
|
|
36
|
-
padding: ${
|
|
36
|
+
padding: ${i.medium};
|
|
37
37
|
svg {
|
|
38
38
|
align-self: center;
|
|
39
39
|
}
|
|
40
|
-
`,l=
|
|
40
|
+
`,l=e.div`
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: column;
|
|
43
43
|
> h6 {
|
|
44
44
|
text-transform: capitalize;
|
|
45
45
|
}
|
|
46
|
-
`,u=
|
|
46
|
+
`,u=e.div`
|
|
47
47
|
display: flex;
|
|
48
|
-
padding: ${
|
|
49
|
-
`,d=
|
|
48
|
+
padding: ${i.medium};
|
|
49
|
+
`,d=e.div`
|
|
50
50
|
display: flex;
|
|
51
|
-
padding: ${
|
|
51
|
+
padding: ${i.large};
|
|
52
52
|
align-items: center;
|
|
53
53
|
grid-column: span 3;
|
|
54
|
-
`,f=
|
|
54
|
+
`,f=e.div`
|
|
55
55
|
display: flex;
|
|
56
56
|
width: 100%;
|
|
57
57
|
justify-content: center;
|
|
58
58
|
flex-direction: column;
|
|
59
59
|
align-items: center;
|
|
60
|
-
background: ${({$isSelected:
|
|
61
|
-
border-radius: ${
|
|
60
|
+
background: ${({$isSelected:e})=>e?n.interactive.primary__selected_highlight.rgba:`none`};
|
|
61
|
+
border-radius: ${r.corners.borderRadius};
|
|
62
62
|
&:hover {
|
|
63
|
-
background: ${
|
|
64
|
-
border-radius: ${
|
|
63
|
+
background: ${n.interactive.primary__hover_alt.rgba};
|
|
64
|
+
border-radius: ${r.corners.borderRadius};
|
|
65
65
|
}
|
|
66
|
-
`,p=
|
|
66
|
+
`,p=e(t)`
|
|
67
67
|
height: 96px;
|
|
68
68
|
|
|
69
69
|
> span {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Field } from "../../../atoms/types/Field.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react106 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/organisms/TopBar/FieldMenu/FieldMenu.d.ts
|
|
5
5
|
interface FieldMenuProps {
|
|
@@ -9,6 +9,6 @@ interface FieldMenuProps {
|
|
|
9
9
|
itemNameSingular?: string;
|
|
10
10
|
showAccessITLink?: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const FieldMenu:
|
|
12
|
+
declare const FieldMenu: react106.ForwardRefExoticComponent<FieldMenuProps & react106.RefAttributes<HTMLDivElement>>;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { FieldMenu };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{useOutsideClick as t}from"../../../node_modules/@equinor/eds-utils/dist/esm/hooks/useOutsideClick.js";import{
|
|
1
|
+
import{tokens as e}from"../../../node_modules/@equinor/eds-tokens/dist/esm/base/index.js";import{useOutsideClick as t}from"../../../node_modules/@equinor/eds-utils/dist/esm/hooks/useOutsideClick.js";import{ListContainer as n,MenuFixedItem as r,MenuItem as i,MenuSection as a,NoFieldsText as o,NoSearchResultsContainer as s,SearchContainer as c,TextContainer as l}from"./FieldMenu.styles.js";import{forwardRef as u,useMemo as d,useRef as f,useState as p}from"react";import{jsx as m,jsxs as h}from"react/jsx-runtime";import{arrow_drop_down as g,arrow_drop_up as _,check as v,exit_to_app as y,platform as b}from"@equinor/eds-icons";import{Icon as x,Search as S,Typography as C}from"@equinor/eds-core-react";import{TopBarButton as w}from"src/organisms/TopBar/TopBar.styles";import{TopBarMenu as T}from"src/organisms/TopBar/TopBarMenu";const{colors:E}=e,D=u(({currentField:e,availableFields:u,onSelect:D,itemNameSingular:O=`field`,showAccessITLink:k=!0},A)=>{let[j,M]=p(!1),N=f(null),P=f(null),[F,I]=p(``),L=()=>M(!1),R=()=>M(!j),z=e=>{I(e.target.value)};t(N.current,e=>{P.current!==e.target&&M(!1)});let B=d(()=>F===``?u.filter(t=>t.name?.toLowerCase()!==e?.name?.toLowerCase()):u.filter(e=>e.name?.toLowerCase().includes(F.toLowerCase())),[u,F,e]),V=d(()=>B.length===0&&u.length>1,[u.length,B.length]),H=d(()=>{if(e?.name)return e?.name?.charAt(0).toUpperCase()+e?.name?.slice(1)},[e?.name]),U=d(()=>B.length>=4||F!==``,[B,F]);return e===void 0?null:h(`div`,{ref:A,children:[h(w,{variant:`ghost`,ref:P,onClick:R,"data-testid":`field-selector-top-bar-button`,$fieldSelector:!0,children:[m(x,{data:b,size:24}),H,m(x,{data:j?_:g})]}),m(T,{open:j,title:`Field Selection`,onClose:L,anchorEl:P.current,contentPadding:!1,ref:N,children:h(`section`,{children:[h(a,{children:[U&&m(c,{children:m(S,{autoFocus:!0,placeholder:`Search fields`,value:F,onChange:z})}),h(n,{children:[e&&!V&&F===``&&m(r,{$active:!0,children:h(`div`,{children:[m(l,{children:m(C,{variant:`h6`,children:e.name?.toLowerCase()})}),m(x,{data:v,color:E.interactive.primary__resting.rgba,size:24})]})}),V?m(s,{children:h(o,{variant:`body_short`,color:E.text.static_icons__tertiary.rgba,children:[`No `,O,`s matching your search`]})}):B.map(e=>m(i,{onClick:()=>{D(e),L()},children:m(l,{children:m(C,{variant:`h6`,children:e.name?.toLowerCase()})})},e.uuid))]})]}),k&&!V&&m(r,{"data-testid":`access-it-link`,onClick:()=>window.open(`https://accessit.equinor.com/#`,`_blank`),children:h(`div`,{children:[h(l,{children:[h(C,{variant:`overline`,children:[`Missing a `,O,`?`]}),m(C,{variant:`h6`,children:`Go to AccessIT`})]}),m(x,{data:y,color:E.interactive.primary__resting.rgba,size:24})]})})]})})]})});D.displayName=`FieldSelector`;export{D as FieldMenu};
|