@carbon-labs/wc-global-header 0.10.0 → 0.12.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/es/wc-global-header.css +8 -0
- package/es/wc-global-header.mjs +7184 -0
- package/package.json +7 -6
- package/es/_virtual/_commonjsHelpers.js +0 -6
- package/es/_virtual/_commonjsHelpers.js.map +0 -1
- package/es/_virtual/index.js +0 -8
- package/es/_virtual/index.js.map +0 -1
- package/es/_virtual/index2.js +0 -4
- package/es/_virtual/index2.js.map +0 -1
- package/es/components/global-header/global-header.d.ts +0 -19
- package/es/components/global-header/global-header.js +0 -27
- package/es/components/global-header/global-header.js.map +0 -1
- package/es/components/global-header/src/components/AuthContext/AuthContext.d.ts +0 -26
- package/es/components/global-header/src/components/AuthContext/AuthContext.js +0 -238
- package/es/components/global-header/src/components/AuthContext/AuthContext.js.map +0 -1
- package/es/components/global-header/src/components/AuthContext/AuthContext.types.d.ts +0 -17
- package/es/components/global-header/src/components/AuthContext/__stories__/AuthContext.stories.d.ts +0 -12
- package/es/components/global-header/src/components/AuthContext/__tests__/AuthContext.test.d.ts +0 -9
- package/es/components/global-header/src/components/AuthContext/_index.scss.js +0 -6
- package/es/components/global-header/src/components/AuthContext/_index.scss.js.map +0 -1
- package/es/components/global-header/src/components/CommonHeader/CommonHeader.d.ts +0 -36
- package/es/components/global-header/src/components/CommonHeader/CommonHeader.js +0 -247
- package/es/components/global-header/src/components/CommonHeader/CommonHeader.js.map +0 -1
- package/es/components/global-header/src/components/CommonHeader/WideSideNav.d.ts +0 -15
- package/es/components/global-header/src/components/CommonHeader/WideSideNav.js +0 -32
- package/es/components/global-header/src/components/CommonHeader/WideSideNav.js.map +0 -1
- package/es/components/global-header/src/components/CommonHeader/__stories__/CommonHeader.stories.d.ts +0 -20
- package/es/components/global-header/src/components/CommonHeader/__stories__/SideNav.stories.d.ts +0 -16
- package/es/components/global-header/src/components/CommonHeader/__tests__/CommonHeader.test.d.ts +0 -9
- package/es/components/global-header/src/components/CommonHeader/__tests__/WideSideNav.test.d.ts +0 -9
- package/es/components/global-header/src/components/CommonHeader/_index.scss.js +0 -6
- package/es/components/global-header/src/components/CommonHeader/_index.scss.js.map +0 -1
- package/es/components/global-header/src/components/HeaderContext/HeaderContext.d.ts +0 -43
- package/es/components/global-header/src/components/HeaderContext/HeaderContext.js +0 -311
- package/es/components/global-header/src/components/HeaderContext/HeaderContext.js.map +0 -1
- package/es/components/global-header/src/components/HeaderContext/HeaderContext.types.d.ts +0 -46
- package/es/components/global-header/src/components/HeaderContext/__tests__/HeaderContext.test.d.ts +0 -9
- package/es/components/global-header/src/components/HeaderContext/_index.scss.js +0 -6
- package/es/components/global-header/src/components/HeaderContext/_index.scss.js.map +0 -1
- package/es/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.d.ts +0 -42
- package/es/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.js +0 -238
- package/es/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.js.map +0 -1
- package/es/components/global-header/src/components/HybridIpaasHeader/__stories__/HybridIPaasHeader.stories.d.ts +0 -20
- package/es/components/global-header/src/components/HybridIpaasHeader/__tests__/HybridIpaasHeader.test.d.ts +0 -10
- package/es/components/global-header/src/components/LogoutHeader/LogoutHeader.d.ts +0 -17
- package/es/components/global-header/src/components/LogoutHeader/LogoutHeader.js +0 -58
- package/es/components/global-header/src/components/LogoutHeader/LogoutHeader.js.map +0 -1
- package/es/components/global-header/src/components/LogoutHeader/__stories__/LogoutHeader.stories.d.ts +0 -15
- package/es/components/global-header/src/components/LogoutHeader/__tests__/LogoutHeader.test.d.ts +0 -9
- package/es/components/global-header/src/components/LogoutHeader/_index.scss.js +0 -6
- package/es/components/global-header/src/components/LogoutHeader/_index.scss.js.map +0 -1
- package/es/components/global-header/src/components/LogoutTile/LogoutTile.d.ts +0 -24
- package/es/components/global-header/src/components/LogoutTile/LogoutTile.js +0 -72
- package/es/components/global-header/src/components/LogoutTile/LogoutTile.js.map +0 -1
- package/es/components/global-header/src/components/LogoutTile/__stories__/LogoutTile.stories.d.ts +0 -14
- package/es/components/global-header/src/components/LogoutTile/__tests__/LogoutTile.test.d.ts +0 -9
- package/es/components/global-header/src/components/LogoutTile/_index.scss.js +0 -6
- package/es/components/global-header/src/components/LogoutTile/_index.scss.js.map +0 -1
- package/es/components/global-header/src/components/ProfilePopover/ProfilePopover.d.ts +0 -22
- package/es/components/global-header/src/components/ProfilePopover/ProfilePopover.js +0 -100
- package/es/components/global-header/src/components/ProfilePopover/ProfilePopover.js.map +0 -1
- package/es/components/global-header/src/components/ProfilePopover/__tests__/ProfilePopover.test.d.ts +0 -9
- package/es/components/global-header/src/components/ProfilePopover/_index.scss.js +0 -6
- package/es/components/global-header/src/components/ProfilePopover/_index.scss.js.map +0 -1
- package/es/components/global-header/src/components/Search/Search.d.ts +0 -25
- package/es/components/global-header/src/components/Search/Search.js +0 -72
- package/es/components/global-header/src/components/Search/Search.js.map +0 -1
- package/es/components/global-header/src/components/Search/__tests__/Search.test.d.ts +0 -9
- package/es/components/global-header/src/components/Search/_index.scss.js +0 -6
- package/es/components/global-header/src/components/Search/_index.scss.js.map +0 -1
- package/es/components/global-header/src/components/SideNavItem/SideNavItem.d.ts +0 -31
- package/es/components/global-header/src/components/SideNavItem/SideNavItem.js +0 -214
- package/es/components/global-header/src/components/SideNavItem/SideNavItem.js.map +0 -1
- package/es/components/global-header/src/components/SideNavItem/SideNavItem.scss.js +0 -6
- package/es/components/global-header/src/components/SideNavItem/SideNavItem.scss.js.map +0 -1
- package/es/components/global-header/src/components/SideNavItem/__tests__/SideNavItem.test.d.ts +0 -9
- package/es/components/global-header/src/components/Switcher/Switcher.d.ts +0 -29
- package/es/components/global-header/src/components/Switcher/Switcher.js +0 -188
- package/es/components/global-header/src/components/Switcher/Switcher.js.map +0 -1
- package/es/components/global-header/src/components/Switcher/Switcher.types.d.ts +0 -11
- package/es/components/global-header/src/components/Switcher/__tests__/Switcher.test.d.ts +0 -9
- package/es/components/global-header/src/components/Switcher/_index.scss.js +0 -6
- package/es/components/global-header/src/components/Switcher/_index.scss.js.map +0 -1
- package/es/components/global-header/src/components/TrialContent/TrialContent.d.ts +0 -11
- package/es/components/global-header/src/components/TrialContent/TrialContent.js +0 -74
- package/es/components/global-header/src/components/TrialContent/TrialContent.js.map +0 -1
- package/es/components/global-header/src/components/TrialContent/TrialContent.types.d.ts +0 -12
- package/es/components/global-header/src/components/TrialContent/__stories__/TrialContent.stories.d.ts +0 -14
- package/es/components/global-header/src/components/TrialPopover/TrialPopover.d.ts +0 -23
- package/es/components/global-header/src/components/TrialPopover/TrialPopover.js +0 -79
- package/es/components/global-header/src/components/TrialPopover/TrialPopover.js.map +0 -1
- package/es/components/global-header/src/components/TrialPopover/__tests__/TrialPopover.test.d.ts +0 -9
- package/es/components/global-header/src/components/TrialPopover/_index.scss.js +0 -6
- package/es/components/global-header/src/components/TrialPopover/_index.scss.js.map +0 -1
- package/es/components/global-header/src/components/UnauthenticatedContext/UnauthenticatedContext.d.ts +0 -19
- package/es/components/global-header/src/components/UnauthenticatedContext/UnauthenticatedContext.js +0 -63
- package/es/components/global-header/src/components/UnauthenticatedContext/UnauthenticatedContext.js.map +0 -1
- package/es/components/global-header/src/components/UnauthenticatedContext/UnauthenticatedContext.stories.d.ts +0 -15
- package/es/components/global-header/src/components/UnauthenticatedContext/__tests__/UnauthenticatedContext.test.d.ts +0 -9
- package/es/components/global-header/src/components/UserProfileImage/UserProfileImage.d.ts +0 -31
- package/es/components/global-header/src/components/UserProfileImage/UserProfileImage.js +0 -104
- package/es/components/global-header/src/components/UserProfileImage/UserProfileImage.js.map +0 -1
- package/es/components/global-header/src/components/UserProfileImage/UserProfileImage.scss.js +0 -6
- package/es/components/global-header/src/components/UserProfileImage/UserProfileImage.scss.js.map +0 -1
- package/es/components/global-header/src/components/UserProfileImage/UserProfileImage.types.d.ts +0 -21
- package/es/components/global-header/src/components/UserProfileImage/__tests__/UserProfileImage.test.d.ts +0 -9
- package/es/components/global-header/src/components/_index.scss.js +0 -6
- package/es/components/global-header/src/components/_index.scss.js.map +0 -1
- package/es/components/global-header/src/constant.d.ts +0 -53
- package/es/components/global-header/src/constant.js +0 -66
- package/es/components/global-header/src/constant.js.map +0 -1
- package/es/components/global-header/src/global-header.template.d.ts +0 -16
- package/es/components/global-header/src/global-header.template.js +0 -20
- package/es/components/global-header/src/global-header.template.js.map +0 -1
- package/es/components/global-header/src/globals/__tests__/useScript.test.d.ts +0 -9
- package/es/components/global-header/src/globals/__tests__/utils.test.d.ts +0 -9
- package/es/components/global-header/src/globals/useScript.d.ts +0 -10
- package/es/components/global-header/src/globals/useScript.js +0 -47
- package/es/components/global-header/src/globals/useScript.js.map +0 -1
- package/es/components/global-header/src/globals/utils.d.ts +0 -22
- package/es/components/global-header/src/globals/utils.js +0 -89
- package/es/components/global-header/src/globals/utils.js.map +0 -1
- package/es/components/global-header/src/index.d.ts +0 -12
- package/es/components/global-header/src/index.scss.js +0 -6
- package/es/components/global-header/src/index.scss.js.map +0 -1
- package/es/components/global-header/src/types/Header.types.d.ts +0 -267
- package/es/components/global-header/src/types/Header.types.js +0 -22
- package/es/components/global-header/src/types/Header.types.js.map +0 -1
- package/es/index.d.ts +0 -9
- package/es/index.js +0 -6
- package/es/index.js.map +0 -1
- package/es/node_modules/classnames/index.js +0 -86
- package/es/node_modules/classnames/index.js.map +0 -1
- package/lib/_virtual/_commonjsHelpers.js +0 -8
- package/lib/_virtual/_commonjsHelpers.js.map +0 -1
- package/lib/_virtual/index.js +0 -12
- package/lib/_virtual/index.js.map +0 -1
- package/lib/_virtual/index2.js +0 -6
- package/lib/_virtual/index2.js.map +0 -1
- package/lib/components/global-header/global-header.d.ts +0 -19
- package/lib/components/global-header/global-header.js +0 -46
- package/lib/components/global-header/global-header.js.map +0 -1
- package/lib/components/global-header/src/components/AuthContext/AuthContext.d.ts +0 -26
- package/lib/components/global-header/src/components/AuthContext/AuthContext.js +0 -238
- package/lib/components/global-header/src/components/AuthContext/AuthContext.js.map +0 -1
- package/lib/components/global-header/src/components/AuthContext/AuthContext.types.d.ts +0 -17
- package/lib/components/global-header/src/components/AuthContext/__stories__/AuthContext.stories.d.ts +0 -12
- package/lib/components/global-header/src/components/AuthContext/__tests__/AuthContext.test.d.ts +0 -9
- package/lib/components/global-header/src/components/AuthContext/_index.scss.js +0 -10
- package/lib/components/global-header/src/components/AuthContext/_index.scss.js.map +0 -1
- package/lib/components/global-header/src/components/CommonHeader/CommonHeader.d.ts +0 -36
- package/lib/components/global-header/src/components/CommonHeader/CommonHeader.js +0 -247
- package/lib/components/global-header/src/components/CommonHeader/CommonHeader.js.map +0 -1
- package/lib/components/global-header/src/components/CommonHeader/WideSideNav.d.ts +0 -15
- package/lib/components/global-header/src/components/CommonHeader/WideSideNav.js +0 -32
- package/lib/components/global-header/src/components/CommonHeader/WideSideNav.js.map +0 -1
- package/lib/components/global-header/src/components/CommonHeader/__stories__/CommonHeader.stories.d.ts +0 -20
- package/lib/components/global-header/src/components/CommonHeader/__stories__/SideNav.stories.d.ts +0 -16
- package/lib/components/global-header/src/components/CommonHeader/__tests__/CommonHeader.test.d.ts +0 -9
- package/lib/components/global-header/src/components/CommonHeader/__tests__/WideSideNav.test.d.ts +0 -9
- package/lib/components/global-header/src/components/CommonHeader/_index.scss.js +0 -10
- package/lib/components/global-header/src/components/CommonHeader/_index.scss.js.map +0 -1
- package/lib/components/global-header/src/components/HeaderContext/HeaderContext.d.ts +0 -43
- package/lib/components/global-header/src/components/HeaderContext/HeaderContext.js +0 -311
- package/lib/components/global-header/src/components/HeaderContext/HeaderContext.js.map +0 -1
- package/lib/components/global-header/src/components/HeaderContext/HeaderContext.types.d.ts +0 -46
- package/lib/components/global-header/src/components/HeaderContext/__tests__/HeaderContext.test.d.ts +0 -9
- package/lib/components/global-header/src/components/HeaderContext/_index.scss.js +0 -10
- package/lib/components/global-header/src/components/HeaderContext/_index.scss.js.map +0 -1
- package/lib/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.d.ts +0 -42
- package/lib/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.js +0 -238
- package/lib/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.js.map +0 -1
- package/lib/components/global-header/src/components/HybridIpaasHeader/__stories__/HybridIPaasHeader.stories.d.ts +0 -20
- package/lib/components/global-header/src/components/HybridIpaasHeader/__tests__/HybridIpaasHeader.test.d.ts +0 -10
- package/lib/components/global-header/src/components/LogoutHeader/LogoutHeader.d.ts +0 -17
- package/lib/components/global-header/src/components/LogoutHeader/LogoutHeader.js +0 -58
- package/lib/components/global-header/src/components/LogoutHeader/LogoutHeader.js.map +0 -1
- package/lib/components/global-header/src/components/LogoutHeader/__stories__/LogoutHeader.stories.d.ts +0 -15
- package/lib/components/global-header/src/components/LogoutHeader/__tests__/LogoutHeader.test.d.ts +0 -9
- package/lib/components/global-header/src/components/LogoutHeader/_index.scss.js +0 -10
- package/lib/components/global-header/src/components/LogoutHeader/_index.scss.js.map +0 -1
- package/lib/components/global-header/src/components/LogoutTile/LogoutTile.d.ts +0 -24
- package/lib/components/global-header/src/components/LogoutTile/LogoutTile.js +0 -72
- package/lib/components/global-header/src/components/LogoutTile/LogoutTile.js.map +0 -1
- package/lib/components/global-header/src/components/LogoutTile/__stories__/LogoutTile.stories.d.ts +0 -14
- package/lib/components/global-header/src/components/LogoutTile/__tests__/LogoutTile.test.d.ts +0 -9
- package/lib/components/global-header/src/components/LogoutTile/_index.scss.js +0 -10
- package/lib/components/global-header/src/components/LogoutTile/_index.scss.js.map +0 -1
- package/lib/components/global-header/src/components/ProfilePopover/ProfilePopover.d.ts +0 -22
- package/lib/components/global-header/src/components/ProfilePopover/ProfilePopover.js +0 -100
- package/lib/components/global-header/src/components/ProfilePopover/ProfilePopover.js.map +0 -1
- package/lib/components/global-header/src/components/ProfilePopover/__tests__/ProfilePopover.test.d.ts +0 -9
- package/lib/components/global-header/src/components/ProfilePopover/_index.scss.js +0 -10
- package/lib/components/global-header/src/components/ProfilePopover/_index.scss.js.map +0 -1
- package/lib/components/global-header/src/components/Search/Search.d.ts +0 -25
- package/lib/components/global-header/src/components/Search/Search.js +0 -72
- package/lib/components/global-header/src/components/Search/Search.js.map +0 -1
- package/lib/components/global-header/src/components/Search/__tests__/Search.test.d.ts +0 -9
- package/lib/components/global-header/src/components/Search/_index.scss.js +0 -10
- package/lib/components/global-header/src/components/Search/_index.scss.js.map +0 -1
- package/lib/components/global-header/src/components/SideNavItem/SideNavItem.d.ts +0 -31
- package/lib/components/global-header/src/components/SideNavItem/SideNavItem.js +0 -214
- package/lib/components/global-header/src/components/SideNavItem/SideNavItem.js.map +0 -1
- package/lib/components/global-header/src/components/SideNavItem/SideNavItem.scss.js +0 -10
- package/lib/components/global-header/src/components/SideNavItem/SideNavItem.scss.js.map +0 -1
- package/lib/components/global-header/src/components/SideNavItem/__tests__/SideNavItem.test.d.ts +0 -9
- package/lib/components/global-header/src/components/Switcher/Switcher.d.ts +0 -29
- package/lib/components/global-header/src/components/Switcher/Switcher.js +0 -188
- package/lib/components/global-header/src/components/Switcher/Switcher.js.map +0 -1
- package/lib/components/global-header/src/components/Switcher/Switcher.types.d.ts +0 -11
- package/lib/components/global-header/src/components/Switcher/__tests__/Switcher.test.d.ts +0 -9
- package/lib/components/global-header/src/components/Switcher/_index.scss.js +0 -10
- package/lib/components/global-header/src/components/Switcher/_index.scss.js.map +0 -1
- package/lib/components/global-header/src/components/TrialContent/TrialContent.d.ts +0 -11
- package/lib/components/global-header/src/components/TrialContent/TrialContent.js +0 -76
- package/lib/components/global-header/src/components/TrialContent/TrialContent.js.map +0 -1
- package/lib/components/global-header/src/components/TrialContent/TrialContent.types.d.ts +0 -12
- package/lib/components/global-header/src/components/TrialContent/__stories__/TrialContent.stories.d.ts +0 -14
- package/lib/components/global-header/src/components/TrialPopover/TrialPopover.d.ts +0 -23
- package/lib/components/global-header/src/components/TrialPopover/TrialPopover.js +0 -79
- package/lib/components/global-header/src/components/TrialPopover/TrialPopover.js.map +0 -1
- package/lib/components/global-header/src/components/TrialPopover/__tests__/TrialPopover.test.d.ts +0 -9
- package/lib/components/global-header/src/components/TrialPopover/_index.scss.js +0 -10
- package/lib/components/global-header/src/components/TrialPopover/_index.scss.js.map +0 -1
- package/lib/components/global-header/src/components/UnauthenticatedContext/UnauthenticatedContext.d.ts +0 -19
- package/lib/components/global-header/src/components/UnauthenticatedContext/UnauthenticatedContext.js +0 -63
- package/lib/components/global-header/src/components/UnauthenticatedContext/UnauthenticatedContext.js.map +0 -1
- package/lib/components/global-header/src/components/UnauthenticatedContext/UnauthenticatedContext.stories.d.ts +0 -15
- package/lib/components/global-header/src/components/UnauthenticatedContext/__tests__/UnauthenticatedContext.test.d.ts +0 -9
- package/lib/components/global-header/src/components/UserProfileImage/UserProfileImage.d.ts +0 -31
- package/lib/components/global-header/src/components/UserProfileImage/UserProfileImage.js +0 -104
- package/lib/components/global-header/src/components/UserProfileImage/UserProfileImage.js.map +0 -1
- package/lib/components/global-header/src/components/UserProfileImage/UserProfileImage.scss.js +0 -10
- package/lib/components/global-header/src/components/UserProfileImage/UserProfileImage.scss.js.map +0 -1
- package/lib/components/global-header/src/components/UserProfileImage/UserProfileImage.types.d.ts +0 -21
- package/lib/components/global-header/src/components/UserProfileImage/__tests__/UserProfileImage.test.d.ts +0 -9
- package/lib/components/global-header/src/components/_index.scss.js +0 -10
- package/lib/components/global-header/src/components/_index.scss.js.map +0 -1
- package/lib/components/global-header/src/constant.d.ts +0 -53
- package/lib/components/global-header/src/constant.js +0 -82
- package/lib/components/global-header/src/constant.js.map +0 -1
- package/lib/components/global-header/src/global-header.template.d.ts +0 -16
- package/lib/components/global-header/src/global-header.template.js +0 -24
- package/lib/components/global-header/src/global-header.template.js.map +0 -1
- package/lib/components/global-header/src/globals/__tests__/useScript.test.d.ts +0 -9
- package/lib/components/global-header/src/globals/__tests__/utils.test.d.ts +0 -9
- package/lib/components/global-header/src/globals/useScript.d.ts +0 -10
- package/lib/components/global-header/src/globals/useScript.js +0 -51
- package/lib/components/global-header/src/globals/useScript.js.map +0 -1
- package/lib/components/global-header/src/globals/utils.d.ts +0 -22
- package/lib/components/global-header/src/globals/utils.js +0 -96
- package/lib/components/global-header/src/globals/utils.js.map +0 -1
- package/lib/components/global-header/src/index.d.ts +0 -12
- package/lib/components/global-header/src/index.scss.js +0 -10
- package/lib/components/global-header/src/index.scss.js.map +0 -1
- package/lib/components/global-header/src/types/Header.types.d.ts +0 -267
- package/lib/components/global-header/src/types/Header.types.js +0 -22
- package/lib/components/global-header/src/types/Header.types.js.map +0 -1
- package/lib/index.d.ts +0 -9
- package/lib/index.js +0 -27
- package/lib/index.js.map +0 -1
- package/lib/node_modules/classnames/index.js +0 -88
- package/lib/node_modules/classnames/index.js.map +0 -1
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var tslib = require('tslib');
|
|
4
|
-
var lit = require('lit');
|
|
5
|
-
var decorators_js = require('lit/decorators.js');
|
|
6
|
-
var utils = require('../../globals/utils.js');
|
|
7
|
-
var index = require('../../../../../_virtual/index.js');
|
|
8
|
-
var UserProfileImage = require('./UserProfileImage.scss.js');
|
|
9
|
-
var constant = require('../../constant.js');
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @license
|
|
13
|
-
*
|
|
14
|
-
* Copyright IBM Corp. 2025
|
|
15
|
-
*
|
|
16
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
17
|
-
* LICENSE file in the root directory of this source tree.
|
|
18
|
-
*/
|
|
19
|
-
/* eslint jsdoc/require-jsdoc: 0 */
|
|
20
|
-
const blockClass = `${constant.AUTOMATION_HEADER_BASE_CLASS}__user-profile-image`;
|
|
21
|
-
/**
|
|
22
|
-
* User image for the profile menu
|
|
23
|
-
*/
|
|
24
|
-
exports.SideNavItem = class SideNavItem extends lit.LitElement {
|
|
25
|
-
constructor() {
|
|
26
|
-
super(...arguments);
|
|
27
|
-
this.kind = '';
|
|
28
|
-
this.size = 'lg';
|
|
29
|
-
this.image = '';
|
|
30
|
-
this.initials = '';
|
|
31
|
-
this.className = '';
|
|
32
|
-
this.backgroundColor = 'light-cyan';
|
|
33
|
-
this.icons = {
|
|
34
|
-
user: {
|
|
35
|
-
md: utils.renderCarbonIcon('User', 20),
|
|
36
|
-
lg: utils.renderCarbonIcon('User', 24),
|
|
37
|
-
xlg: utils.renderCarbonIcon('User', 32),
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
this.formatInitials = () => {
|
|
41
|
-
var _a, _b, _c, _d, _e;
|
|
42
|
-
if (((_a = this.initials) === null || _a === void 0 ? void 0 : _a.length) === 2) {
|
|
43
|
-
return this.initials.toUpperCase();
|
|
44
|
-
}
|
|
45
|
-
return (_e = (_d = (_c = (_b = this.initials) === null || _b === void 0 ? void 0 : _b.match(/(^\S\S?|\b\S)?/g)) === null || _c === void 0 ? void 0 : _c.join('')) === null || _d === void 0 ? void 0 : _d.match(/(^\S|\S$)?/g)) === null || _e === void 0 ? void 0 : _e.join('').toUpperCase();
|
|
46
|
-
};
|
|
47
|
-
this.getFillItem = () => {
|
|
48
|
-
if (this.image) {
|
|
49
|
-
return lit.html `<img
|
|
50
|
-
alt="profile image"
|
|
51
|
-
src="${this.image}"
|
|
52
|
-
class="${blockClass}__photo ${blockClass}__photo--${this.size}" />`;
|
|
53
|
-
}
|
|
54
|
-
if (this.initials) {
|
|
55
|
-
return this.formatInitials();
|
|
56
|
-
}
|
|
57
|
-
if (this.kind && this.size) {
|
|
58
|
-
return utils.renderCarbonIcon(this.kind, +this.size);
|
|
59
|
-
}
|
|
60
|
-
return this.icons.user.md;
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
return lit.html `
|
|
65
|
-
<div class="${blockClass}">
|
|
66
|
-
<div
|
|
67
|
-
class="${index.default([
|
|
68
|
-
blockClass,
|
|
69
|
-
this.className,
|
|
70
|
-
`${blockClass}--${this.size}`,
|
|
71
|
-
`${blockClass}--${'light'}`,
|
|
72
|
-
`${blockClass}--${this.backgroundColor}`,
|
|
73
|
-
])}">
|
|
74
|
-
${this.getFillItem()}
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
`;
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
exports.SideNavItem.styles = lit.css `
|
|
81
|
-
${lit.unsafeCSS(UserProfileImage.default)}
|
|
82
|
-
`;
|
|
83
|
-
tslib.__decorate([
|
|
84
|
-
decorators_js.property({ type: String })
|
|
85
|
-
], exports.SideNavItem.prototype, "kind", void 0);
|
|
86
|
-
tslib.__decorate([
|
|
87
|
-
decorators_js.property({ type: String })
|
|
88
|
-
], exports.SideNavItem.prototype, "size", void 0);
|
|
89
|
-
tslib.__decorate([
|
|
90
|
-
decorators_js.property({ type: String })
|
|
91
|
-
], exports.SideNavItem.prototype, "image", void 0);
|
|
92
|
-
tslib.__decorate([
|
|
93
|
-
decorators_js.property({ type: String })
|
|
94
|
-
], exports.SideNavItem.prototype, "initials", void 0);
|
|
95
|
-
tslib.__decorate([
|
|
96
|
-
decorators_js.property({ type: String })
|
|
97
|
-
], exports.SideNavItem.prototype, "className", void 0);
|
|
98
|
-
tslib.__decorate([
|
|
99
|
-
decorators_js.property({ type: String })
|
|
100
|
-
], exports.SideNavItem.prototype, "backgroundColor", void 0);
|
|
101
|
-
exports.SideNavItem = tslib.__decorate([
|
|
102
|
-
decorators_js.customElement('apaas-user-profile-image')
|
|
103
|
-
], exports.SideNavItem);
|
|
104
|
-
//# sourceMappingURL=UserProfileImage.js.map
|
package/lib/components/global-header/src/components/UserProfileImage/UserProfileImage.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserProfileImage.js","sources":["../../../../../../../components/global-header/src/components/UserProfileImage/UserProfileImage.ts"],"sourcesContent":[null],"names":["AUTOMATION_HEADER_BASE_CLASS","SideNavItem","LitElement","renderCarbonIcon","html","cx","css","unsafeCSS","styles","__decorate","property","customElement"],"mappings":";;;;;;;;;;AAAA;;;;;;;AAOG;AACH;AAWA,MAAM,UAAU,GAAG,CAAA,EAAGA,qCAA4B,sBAAsB;AAExE;;AAEG;AAEUC,mBAAW,GAAjB,MAAM,WAAY,SAAQC,cAAU,CAAA;AAApC,IAAA,WAAA,GAAA;;QAKuB,IAAA,CAAA,IAAI,GAAG,EAAE;QACT,IAAA,CAAA,IAAI,GAAG,IAAI;QACX,IAAA,CAAA,KAAK,GAAG,EAAE;QACV,IAAA,CAAA,QAAQ,GAAG,EAAE;QACb,IAAA,CAAA,SAAS,GAAG,EAAE;QACd,IAAA,CAAA,eAAe,GAAG,YAAY;AAE1D,QAAA,IAAA,CAAA,KAAK,GAAG;AACN,YAAA,IAAI,EAAE;AACJ,gBAAA,EAAE,EAAEC,sBAAgB,CAAC,MAAM,EAAE,EAAE,CAAC;AAChC,gBAAA,EAAE,EAAEA,sBAAgB,CAAC,MAAM,EAAE,EAAE,CAAC;AAChC,gBAAA,GAAG,EAAEA,sBAAgB,CAAC,MAAM,EAAE,EAAE,CAAC;AAClC,aAAA;SACF;QAED,IAAA,CAAA,cAAc,GAAG,MAAK;;YACpB,IAAI,CAAA,CAAA,EAAA,GAAA,IAAI,CAAC,QAAQ,0CAAE,MAAM,MAAK,CAAC,EAAE;AAC/B,gBAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,WAAW,EAAE;YACpC;AAEA,YAAA,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,IAAI,CAAC,QAAQ,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAChB,KAAK,CAAC,iBAAiB,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CACxB,IAAI,CAAC,EAAE,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CACR,KAAK,CAAC,aAAa,CAAC,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CACpB,IAAI,CAAC,EAAE,CAAA,CACR,WAAW,EAAE;AAClB,QAAA,CAAC;QAED,IAAA,CAAA,WAAW,GAAG,MAAK;AACjB,YAAA,IAAI,IAAI,CAAC,KAAK,EAAE;AACd,gBAAA,OAAOC,QAAI,CAAA,CAAA;;AAEF,aAAA,EAAA,IAAI,CAAC,KAAK,CAAA;AACR,eAAA,EAAA,UAAU,WAAW,UAAU,CAAA,SAAA,EAAY,IAAI,CAAC,IAAI,MAAM;YACvE;AACA,YAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;AACjB,gBAAA,OAAO,IAAI,CAAC,cAAc,EAAE;YAC9B;YACA,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE;gBAC1B,OAAOD,sBAAgB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC;YAChD;AAEA,YAAA,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;AAC3B,QAAA,CAAC;IAkBH;IAhBE,MAAM,GAAA;AACJ,QAAA,OAAOC,QAAI,CAAA;oBACK,UAAU,CAAA;;AAEX,iBAAA,EAAAC,aAAE,CAAC;YACV,UAAU;AACV,YAAA,IAAI,CAAC,SAAS;AACd,YAAA,CAAA,EAAG,UAAU,CAAA,EAAA,EAAK,IAAI,CAAC,IAAI,CAAA,CAAE;YAC7B,CAAA,EAAG,UAAU,CAAA,EAAA,EAAK,OAAO,CAAA,CAAE;AAC3B,YAAA,CAAA,EAAG,UAAU,CAAA,EAAA,EAAK,IAAI,CAAC,eAAe,CAAA,CAAE;SACzC,CAAC,CAAA;YACA,IAAI,CAAC,WAAW,EAAE;;;KAGzB;IACH;;AAhEOJ,mBAAA,CAAA,MAAM,GAAGK,OAAG,CAAA;MACfC,aAAS,CAACC,wBAAM,CAAC;AACpB,EAAA,CAFY;AAIeC,gBAAA,CAAA;AAA3B,IAAAC,sBAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAAY,CAAA,EAAAT,mBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AACVQ,gBAAA,CAAA;AAA3B,IAAAC,sBAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAAc,CAAA,EAAAT,mBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AACZQ,gBAAA,CAAA;AAA3B,IAAAC,sBAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAAa,CAAA,EAAAT,mBAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AACXQ,gBAAA,CAAA;AAA3B,IAAAC,sBAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAAgB,CAAA,EAAAT,mBAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AACdQ,gBAAA,CAAA;AAA3B,IAAAC,sBAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAAiB,CAAA,EAAAT,mBAAA,CAAA,SAAA,EAAA,WAAA,EAAA,MAAA,CAAA;AACfQ,gBAAA,CAAA;AAA3B,IAAAC,sBAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAAiC,CAAA,EAAAT,mBAAA,CAAA,SAAA,EAAA,iBAAA,EAAA,MAAA,CAAA;AAVhDA,mBAAW,GAAAQ,gBAAA,CAAA;IADvBE,2BAAa,CAAC,0BAA0B;AAC5B,CAAA,EAAAV,mBAAW,CAkEvB;;"}
|
package/lib/components/global-header/src/components/UserProfileImage/UserProfileImage.scss.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var lit = require('lit');
|
|
6
|
-
|
|
7
|
-
var styles = lit.css([".automation-global-header__user-profile-image{align-items:center;block-size:100%;display:flex;justify-content:center}.automation-global-header__user-profile-image .automation-global-header__user-profile-image--light{color:#161616}.automation-global-header__user-profile-image .automation-global-header__user-profile-image--light.automation-global-header__user-profile-image--dark-cyan,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--light.automation-global-header__user-profile-image--dark-gray,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--light.automation-global-header__user-profile-image--dark-green,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--light.automation-global-header__user-profile-image--dark-magenta,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--light.automation-global-header__user-profile-image--dark-purple,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--light.automation-global-header__user-profile-image--dark-teal,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--light.automation-global-header__user-profile-image--light-cyan,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--light.automation-global-header__user-profile-image--light-gray,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--light.automation-global-header__user-profile-image--light-green,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--light.automation-global-header__user-profile-image--light-magenta,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--light.automation-global-header__user-profile-image--light-purple,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--light.automation-global-header__user-profile-image--light-teal{background-color:#1192e8}.automation-global-header__user-profile-image .automation-global-header__user-profile-image--dark{color:#161616}.automation-global-header__user-profile-image .automation-global-header__user-profile-image--dark.automation-global-header__user-profile-image--dark-cyan,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--dark.automation-global-header__user-profile-image--dark-gray,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--dark.automation-global-header__user-profile-image--dark-green,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--dark.automation-global-header__user-profile-image--dark-magenta,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--dark.automation-global-header__user-profile-image--dark-purple,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--dark.automation-global-header__user-profile-image--dark-teal,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--dark.automation-global-header__user-profile-image--light-cyan,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--dark.automation-global-header__user-profile-image--light-gray,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--dark.automation-global-header__user-profile-image--light-green,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--dark.automation-global-header__user-profile-image--light-magenta,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--dark.automation-global-header__user-profile-image--light-purple,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--dark.automation-global-header__user-profile-image--light-teal{background-color:#1192e8}.automation-global-header__user-profile-image .automation-global-header__user-profile-image{align-items:center;border-radius:100%;display:flex;flex-direction:column;justify-content:center;text-transform:uppercase}.automation-global-header__user-profile-image .automation-global-header__user-profile-image__photo{border-radius:100%;inline-size:100%}.automation-global-header__user-profile-image .automation-global-header__user-profile-image__photo--xlg{block-size:3rem;inline-size:3rem}.automation-global-header__user-profile-image .automation-global-header__user-profile-image__photo--lg{block-size:2rem;inline-size:2rem}.automation-global-header__user-profile-image .automation-global-header__user-profile-image__photo--md{block-size:1.5rem;inline-size:1.5rem}.automation-global-header__user-profile-image .automation-global-header__user-profile-image__photo--sm{block-size:1.25rem;inline-size:1.25rem}.automation-global-header__user-profile-image .automation-global-header__user-profile-image__photo--xs{block-size:1rem;inline-size:1rem}.automation-global-header__user-profile-image .automation-global-header__user-profile-image--xlg{block-size:3rem;font-size:var(--cds-heading-03-font-size,1.25rem);font-weight:var(--cds-heading-03-font-weight,400);inline-size:3rem;letter-spacing:var(--cds-heading-03-letter-spacing,0);line-height:var(--cds-heading-03-line-height,1.4)}.automation-global-header__user-profile-image .automation-global-header__user-profile-image--lg{block-size:2rem;font-size:var(--cds-body-short-01-font-size,.875rem);font-weight:var(--cds-body-short-01-font-weight,400);inline-size:2rem;letter-spacing:var(--cds-body-short-01-letter-spacing,.16px);line-height:var(--cds-body-short-01-line-height,1.28572)}.automation-global-header__user-profile-image .automation-global-header__user-profile-image--md{block-size:1.5rem;inline-size:1.5rem}.automation-global-header__user-profile-image .automation-global-header__user-profile-image--md,.automation-global-header__user-profile-image .automation-global-header__user-profile-image--sm{font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);font-weight:700;letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333)}.automation-global-header__user-profile-image .automation-global-header__user-profile-image--sm{block-size:1.25rem;inline-size:1.25rem}.automation-global-header__user-profile-image .automation-global-header__user-profile-image--xs{block-size:1rem;font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);font-weight:700;inline-size:1rem;letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333)}"]);
|
|
8
|
-
|
|
9
|
-
exports.default = styles;
|
|
10
|
-
//# sourceMappingURL=UserProfileImage.scss.js.map
|
package/lib/components/global-header/src/components/UserProfileImage/UserProfileImage.scss.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UserProfileImage.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
package/lib/components/global-header/src/components/UserProfileImage/UserProfileImage.types.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*
|
|
4
|
-
* Copyright IBM Corp. 2025
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
export declare enum ProfileImageSize {
|
|
10
|
-
'lg' = 0,
|
|
11
|
-
'md' = 1,
|
|
12
|
-
'xlg' = 2
|
|
13
|
-
}
|
|
14
|
-
export interface UserProfileImageIProps {
|
|
15
|
-
kind?: string;
|
|
16
|
-
size?: string;
|
|
17
|
-
image?: string;
|
|
18
|
-
initials?: string;
|
|
19
|
-
className?: string;
|
|
20
|
-
backgroundColor?: string;
|
|
21
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var lit = require('lit');
|
|
6
|
-
|
|
7
|
-
var styles = lit.css([".ibm-automation-cds__header{z-index:8050}.ibm-automation-cds__header-name{margin:0 0 0 -.5rem}.ibm-automation-cds__capability-name{color:var(--cds-custom-text-primary);font-weight:400;margin-inline-end:1.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibm-automation-cds__product-type{white-space:nowrap}.ibm-automation-cds__global{block-size:100%;display:flex;flex:1 1 0%;justify-content:flex-end}.automation-global-header__popover__section{padding:1rem;position:relative}.automation-global-header__popover__section:not(:last-child):after{border-block-end:1px solid #393939;content:\"\";inline-size:100%;inset-block-end:0;inset-inline-start:0;position:absolute}.automation--header__popover__header{display:flex;flex-wrap:nowrap}.automation--header__popover__profile__header__title{font-size:var(--cds-productive-heading-03-font-size,1.25rem);font-weight:var(--cds-productive-heading-03-font-weight,400);letter-spacing:var(--cds-productive-heading-03-letter-spacing,0);line-height:var(--cds-productive-heading-03-line-height,1.4);line-height:1.2;margin-block-end:.25rem}.automation--header__popover__profile__header__email,.automation--header__popover__profile__header__title{display:block;inline-size:189px;word-wrap:break-word}.automation-global-header__horizontal_section{border:.25px solid #393939;margin-inline:.5rem}.automation-global-header__name_section{margin-inline-start:1rem}.automation-global-header__console_lnk_section,.automation-global-header__usr_management_lnk_section{padding:0}.automation-global-header__popover__link-item a{text-decoration:none}.automation-global-header__popover__section ul,.automation-global-header__profile_footer ul{margin:0;padding:0}.automation-global-header__popover__section ul li,.automation-global-header__profile_footer ul li{list-style-position:inside;list-style-type:none}.automation-global-header__popover__link{color:#fff;display:flex;font-size:var(--cds-body-short-01-font-size,.875rem);font-weight:var(--cds-body-short-01-font-weight,400);letter-spacing:var(--cds-body-short-01-letter-spacing,.16px);line-height:var(--cds-body-short-01-line-height,1.28572);padding:1rem;text-decoration:none;transition:background-color .11s,color .11s}.automation-global-header__popover__link svg{block-size:100%}.automation-global-header__popover__link .link_icon{margin-inline-end:.5rem}.automation-global-header__popover__link:hover{background-color:#353535}.automation-global-header__popover__link:hover .launch_icon{opacity:1}.automation-global-header__popover__link .link_text{margin:auto 0}.automation-global-header__popover__link .launch_icon{margin-inline-start:auto;opacity:0}.automation--header__popover__profile__header__email{color:#c6c6c6;font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333)}.automation-global-header__instance_details{margin:1rem}.automation-global-header__title_bar .title-bar__label{color:#c6c6c6;font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333)}.automation-global-header__title_bar .title-bar__text{font-size:var(--cds-expressive-heading-01-font-size,.875rem);font-weight:var(--cds-expressive-heading-01-font-weight,600);font-weight:400;letter-spacing:var(--cds-expressive-heading-01-letter-spacing,.16px);line-height:var(--cds-expressive-heading-01-line-height,1.42857)}.automation-global-header__popover__profile__footer__logout{color:#fff!important}.automation-global-header__popover__link-item cds-button{inline-size:100%}.automation-global-header__popover__link-item cds-button::part(button){inline-size:100%;padding:0}.automation-global-header__popover__link-item cds-button .automation-global-header__popover__link{inline-size:100%}cds-custom-header-global-action.mcsp-header-user-profile{block-size:48px;display:flex;inline-size:48px}cds-custom-header-global-action apaas-user-profile-image{inline-size:100%}.ibm-automation-cds__help-menu{list-style:none}.ibm-automation-cds__help-menu svg{fill:#fff}.ibm-automation-cds__help-menu ul{transform:translateX(calc(3rem - 100%)) translateY(100%)!important}.ibm-automation-cds__help-menu .ibm-automation-cds--text-truncate--end{display:flex;inline-size:320px;justify-content:space-between}.ibm-automation-cds__help-menu .ibm-automation-cds--header__menu-item{block-size:47px;padding:12px}.automation-global-header__notification svg{fill:#fff}.automation-global-header__notification svg circle{fill:#d61f28}cds-custom-header-global-action.mcsp-header-user-profile>div{background-color:#1192e8;block-size:32px;border-radius:50%;inline-size:32px;margin:7px}cds-custom-header-global-action.mcsp-header-user-profile>div svg{margin:6px}.automation-global-header__divider:before{background-color:var(--cds-custom-border-subtle);block-size:2.5rem;content:\"\";display:block;inline-size:.0625rem;transform:translateY(.25rem)}.automation--header__group{display:flex;position:relative}.automation-global-header--popover-content-container .ibm-automation-cds--popover .ibm-automation-cds--popover-caret,.automation-global-header--popover-content-container .ibm-automation-cds--popover span{display:none!important}.ibm-automation-cds--custom-header__nav{display:block!important}.ibm-automation-cds--header__global .ibm-automation-cds--popover span{display:none!important}.c4p--user-profile-image--light{color:#000}.automation-global-header__trial-menu__counting-box-alert{background-image:linear-gradient(135deg,#161616,#161616),linear-gradient(135deg,#fa4d56,#fa4d56)}.automation-global-header__trial-menu{color:#f4f4f4}.automation-global-header__trial-menu::part(button){align-items:center;display:flex;inline-size:-moz-fit-content;inline-size:fit-content;padding:0 .75rem}.automation-global-header__trial-menu p{font-size:var(--cds-label-01-font-size,.75rem);font-weight:var(--cds-label-01-font-weight,400);letter-spacing:var(--cds-label-01-letter-spacing,.32px);line-height:var(--cds-label-01-line-height,1.33333)}.automation-global-header__trial-menu .trial-label{color:#f4f4f4;padding-inline-start:5px;text-align:center;white-space:nowrap}.automation-global-header__trial-menu .automation-global-header__trial-menu__counting-box{background-clip:padding-box,border-box;background-image:linear-gradient(135deg,#161616,#161616),linear-gradient(135deg,#0043ce,#be95ff);background-origin:padding-box,border-box;block-size:1.25rem;border:1px solid transparent;border-radius:.125rem;color:#f4f4f4;font-size:14px;font-weight:600;min-inline-size:1rem;text-align:center}.automation-global-header__trial-menu .automation-global-header__trial-menu__counting-box-alert{background-image:linear-gradient(135deg,#161616,#161616),linear-gradient(135deg,#fa4d56,#fa4d56)}.automation-global-header__trial-menu:hover .automation-global-header__trial-menu__counting-box{background-image:linear-gradient(135deg,#353535,#353535),linear-gradient(135deg,#0043ce,#be95ff)!important}.automation-global-header__trial-menu:hover .automation-global-header__trial-menu__counting-box-alert{background-image:linear-gradient(135deg,#353535,#353535),linear-gradient(135deg,#fa4d56,#fa4d56)!important}.ibm-automation-cds--header__action:hover{background-color:#393939}.ibm-automation-cds--btn.ibm-automation-cds--btn--icon-only.ibm-automation-cds--header__action svg{fill:#fff}@media (forced-colors:active){.ibm-automation-cds--btn.ibm-automation-cds--btn--icon-only.ibm-automation-cds--header__action svg{fill:#fff}}@media (forced-colors:active) and (-ms-high-contrast:black-on-white){.ibm-automation-cds--btn.ibm-automation-cds--btn--icon-only.ibm-automation-cds--header__action svg{fill:#000}}@media (forced-colors:active) and (-ms-high-contrast:white-on-black){.ibm-automation-cds--btn.ibm-automation-cds--btn--icon-only.ibm-automation-cds--header__action svg{fill:#fff}}.c4p--notifications-panel__container{block-size:-moz-max-content;block-size:max-content;border:0;min-block-size:-moz-max-content;min-block-size:max-content}.automation-header__tooltip{color:#fff;inline-size:16rem;inset-block-start:0;inset-inline-end:0;position:absolute;transform:translateX(40px)}.automation-header__tooltip-body{background-color:#393939;border-radius:3px;box-shadow:0 5px 5px 0 rgba(0,0,0,.3);padding:1rem}.automation-header__tooltip-body :last-child{margin-block-end:0}.automation-global-header__tooltip-description{font-size:14px;line-height:1.25rem;margin-block-end:1rem}.automation-global-header__tooltip-links{margin-block-end:1rem}.automation-global-header__tooltip-links .automation-global-header__tooltip-link{color:#78a9ff;display:block;margin-block-end:.25rem;margin-inline-start:-1rem;padding:6px 15px}.automation-global-header__tooltip-links .automation-global-header__tooltip-link svg{fill:#78a9ff}.automation-global-header__tooltip-links .automation-global-header__tooltip-link:hover{background-color:transparent;text-decoration:underline}.automation-global-header__trial-button{display:inline-block}.automation-global-header__trial-button .buttons{background:#0f62fe;color:#fff;display:flex;padding:6px 15px}.automation-global-header__trial-button .button-icon{display:flex;margin-inline-start:20px}.automation-global-header__trial-button:hover{text-decoration:none}.automation-global-header--popover-content-container .ibm-automation-cds--popover span{display:none}.automation-global-header--popover-content-container .ibm-automation-cds--popover .ibm-automation-cds--popover-content{background-color:#393939;color:#fff;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);padding:.125rem .5rem}.automation-global-header--popover-content-container .ibm-automation-cds--popover .ibm-automation-cds--popover-caret{display:none}.automation-global-header__switcher{block-size:-moz-max-content;block-size:max-content;border:0!important;color:#a8a8a8;inline-size:-moz-max-content;inline-size:max-content;min-block-size:-moz-max-content;min-block-size:max-content}.automation-global-header__switcher-menu{block-size:47px;color:#a8a8a8;display:inline-block;list-style-type:none;min-inline-size:12rem!important}.automation-global-header__switcher-menu-item-title{align-items:flex-end;display:flex;justify-content:space-between}.automation-global-header__switcher-menu-item-title span{margin-inline-end:1.5rem;max-inline-size:224px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.automation-global-header__switcher-menu-item-title-hidden-checkmark{visibility:hidden}.automation-global-header__switcher-menu-item-title-icons-left{display:flex}.automation-global-header__switcher-menu-item-title-icons-left div{margin-inline-end:1rem}.automation-global-header__switcher-menu-item-title-icons-left span{margin-inline-end:1rem}.automation-global-header__switcher-menu-item-title-icons-left span,.automation-global-header__switcher-menu-item>span{max-inline-size:224px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.automation-global-header__switcher-menu-disabled{pointer-events:none}.automation-global-header__switcher-menu.hybrid-ipaas .cds--header__menu-item+.cds--header__menu-title[aria-expanded=false]{inline-size:100%!important;min-inline-size:15rem!important}.automation-global-header__switcher-menu-group-title{align-items:center;block-size:47px;color:#f4f4f4;display:flex;font-size:var(--cds-heading-compact-01-font-size,.875rem);font-weight:var(--cds-heading-compact-01-font-weight,600);justify-content:space-between;letter-spacing:var(--cds-heading-compact-01-letter-spacing,.16px);line-height:var(--cds-heading-compact-01-line-height,1.28572);margin-inline-start:1rem;pointer-events:none}cds-custom-header-menu::part(menu-body){inline-size:100%!important;max-block-size:calc(100vh - 47px);min-inline-size:15rem!important;overflow-x:hidden}cds-custom-header-menu::part(trigger){align-items:center!important;display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;justify-content:space-between!important;max-inline-size:224px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}cds-custom-header-menu-item:nth-last-child(2){border-block-end:1px solid #393939}.ibm-automation-cds .automation-header-navigation-action__menu-item{cursor:pointer;display:block}.ibm-automation-cds .automation-header-navigation-action__menu-item a{color:#f4f4f4}.ibm-automation-cds .automation-header-navigation-action__menu-item span{align-items:center;display:flex}.ibm-automation-cds .automation-header-navigation-action__menu-item svg{margin-inline-start:.25rem}"]);
|
|
8
|
-
|
|
9
|
-
exports.default = styles;
|
|
10
|
-
//# sourceMappingURL=_index.scss.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_index.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*
|
|
4
|
-
* Copyright IBM Corp. 2025
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
export declare const AUTOMATION_NAMESPACE_PREFIX = "ibm-automation-cds";
|
|
10
|
-
export declare const AUTOMATION_HEADER_BASE_CLASS = "automation-global-header";
|
|
11
|
-
export declare const NAMESPACE = "automation--header";
|
|
12
|
-
export declare const HEADER_NAVIGATION_ACTION = "automation-header-navigation-action";
|
|
13
|
-
export declare const POPOVER_LABEL_ID = "automation--header__popover__label--profile";
|
|
14
|
-
export declare const APP_SWITCHER_BUTTON_ID = "ibm-automation-cds-app-switcher-button";
|
|
15
|
-
export declare const ENV_SWITCHER_BUTTON_ID = "ibm-automation-cds-env-switcher-button";
|
|
16
|
-
export declare const HELP_MENU_BUTTON_ID = "ibm-automation-cds-help-menu-button";
|
|
17
|
-
export declare const INTEGRATION_AGENT_BUTTON_ID = "ibm-automation-cds-chatbot-menu-button";
|
|
18
|
-
export declare const NOTIFICATIONS_BUTTON_ID = "ibm-automation-cds-notifications-button";
|
|
19
|
-
export declare const PROFILE_MENU_BUTTON_ID = "ibm-automation-cds-profile-menu-button";
|
|
20
|
-
export declare const SEARCH_BUTTON_ID = "ibm-automation-cds-search-button";
|
|
21
|
-
export declare const TRIAL_POPOVER_BUTTON_ID = "ibm-automation-cds-trial-popover-button";
|
|
22
|
-
export declare const INITIAL_AUTOMATION_HEADER_PROPS: {
|
|
23
|
-
brand: {
|
|
24
|
-
company: string;
|
|
25
|
-
product: string;
|
|
26
|
-
};
|
|
27
|
-
enableLogs: boolean;
|
|
28
|
-
managementConsole: {
|
|
29
|
-
href: string;
|
|
30
|
-
text: string;
|
|
31
|
-
};
|
|
32
|
-
noAuthHeaderLinks: never[];
|
|
33
|
-
profileFooterLinks: never[];
|
|
34
|
-
footerSectionItems: {
|
|
35
|
-
href: string;
|
|
36
|
-
text: string;
|
|
37
|
-
arialLabel: string;
|
|
38
|
-
carbonIcon: string;
|
|
39
|
-
}[];
|
|
40
|
-
userManagement: {
|
|
41
|
-
href: string;
|
|
42
|
-
text: string;
|
|
43
|
-
icon: string;
|
|
44
|
-
};
|
|
45
|
-
switcherConfigs: never[];
|
|
46
|
-
environment: string;
|
|
47
|
-
};
|
|
48
|
-
export declare const DEFAULT_NO_AUTH_HEADER_LINKS: {
|
|
49
|
-
text: string;
|
|
50
|
-
href: string;
|
|
51
|
-
carbonIcon: string;
|
|
52
|
-
arialLabel: string;
|
|
53
|
-
}[];
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @license
|
|
5
|
-
*
|
|
6
|
-
* Copyright IBM Corp. 2025
|
|
7
|
-
*
|
|
8
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
9
|
-
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/
|
|
11
|
-
const AUTOMATION_NAMESPACE_PREFIX = 'ibm-automation-cds';
|
|
12
|
-
const AUTOMATION_HEADER_BASE_CLASS = 'automation-global-header';
|
|
13
|
-
const NAMESPACE = 'automation--header';
|
|
14
|
-
const HEADER_NAVIGATION_ACTION = 'automation-header-navigation-action';
|
|
15
|
-
const POPOVER_LABEL_ID = `automation--header__popover__label--profile`;
|
|
16
|
-
const APP_SWITCHER_BUTTON_ID = `${AUTOMATION_NAMESPACE_PREFIX}-app-switcher-button`;
|
|
17
|
-
const ENV_SWITCHER_BUTTON_ID = `${AUTOMATION_NAMESPACE_PREFIX}-env-switcher-button`;
|
|
18
|
-
const HELP_MENU_BUTTON_ID = `${AUTOMATION_NAMESPACE_PREFIX}-help-menu-button`;
|
|
19
|
-
const INTEGRATION_AGENT_BUTTON_ID = `${AUTOMATION_NAMESPACE_PREFIX}-chatbot-menu-button`;
|
|
20
|
-
const NOTIFICATIONS_BUTTON_ID = `${AUTOMATION_NAMESPACE_PREFIX}-notifications-button`;
|
|
21
|
-
const PROFILE_MENU_BUTTON_ID = `${AUTOMATION_NAMESPACE_PREFIX}-profile-menu-button`;
|
|
22
|
-
const SEARCH_BUTTON_ID = `${AUTOMATION_NAMESPACE_PREFIX}-search-button`;
|
|
23
|
-
const TRIAL_POPOVER_BUTTON_ID = `${AUTOMATION_NAMESPACE_PREFIX}-trial-popover-button`;
|
|
24
|
-
const INITIAL_AUTOMATION_HEADER_PROPS = {
|
|
25
|
-
brand: {
|
|
26
|
-
company: '',
|
|
27
|
-
product: '',
|
|
28
|
-
},
|
|
29
|
-
enableLogs: false,
|
|
30
|
-
managementConsole: {
|
|
31
|
-
href: '',
|
|
32
|
-
text: 'Console',
|
|
33
|
-
},
|
|
34
|
-
noAuthHeaderLinks: [],
|
|
35
|
-
profileFooterLinks: [],
|
|
36
|
-
footerSectionItems: [
|
|
37
|
-
{
|
|
38
|
-
href: '',
|
|
39
|
-
text: 'Service IDs and API keys',
|
|
40
|
-
arialLabel: 'APIKeys',
|
|
41
|
-
carbonIcon: 'IbmCloudKeyProtect',
|
|
42
|
-
},
|
|
43
|
-
],
|
|
44
|
-
userManagement: {
|
|
45
|
-
href: '',
|
|
46
|
-
text: 'User management',
|
|
47
|
-
icon: 'UserFollow',
|
|
48
|
-
},
|
|
49
|
-
switcherConfigs: [],
|
|
50
|
-
environment: 'staging',
|
|
51
|
-
};
|
|
52
|
-
const DEFAULT_NO_AUTH_HEADER_LINKS = [
|
|
53
|
-
{
|
|
54
|
-
text: 'Docs',
|
|
55
|
-
href: '/docs',
|
|
56
|
-
carbonIcon: 'Document',
|
|
57
|
-
arialLabel: 'Docs',
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
href: '/login',
|
|
61
|
-
text: 'Log in',
|
|
62
|
-
carbonIcon: 'Login',
|
|
63
|
-
arialLabel: 'Log in',
|
|
64
|
-
},
|
|
65
|
-
];
|
|
66
|
-
|
|
67
|
-
exports.APP_SWITCHER_BUTTON_ID = APP_SWITCHER_BUTTON_ID;
|
|
68
|
-
exports.AUTOMATION_HEADER_BASE_CLASS = AUTOMATION_HEADER_BASE_CLASS;
|
|
69
|
-
exports.AUTOMATION_NAMESPACE_PREFIX = AUTOMATION_NAMESPACE_PREFIX;
|
|
70
|
-
exports.DEFAULT_NO_AUTH_HEADER_LINKS = DEFAULT_NO_AUTH_HEADER_LINKS;
|
|
71
|
-
exports.ENV_SWITCHER_BUTTON_ID = ENV_SWITCHER_BUTTON_ID;
|
|
72
|
-
exports.HEADER_NAVIGATION_ACTION = HEADER_NAVIGATION_ACTION;
|
|
73
|
-
exports.HELP_MENU_BUTTON_ID = HELP_MENU_BUTTON_ID;
|
|
74
|
-
exports.INITIAL_AUTOMATION_HEADER_PROPS = INITIAL_AUTOMATION_HEADER_PROPS;
|
|
75
|
-
exports.INTEGRATION_AGENT_BUTTON_ID = INTEGRATION_AGENT_BUTTON_ID;
|
|
76
|
-
exports.NAMESPACE = NAMESPACE;
|
|
77
|
-
exports.NOTIFICATIONS_BUTTON_ID = NOTIFICATIONS_BUTTON_ID;
|
|
78
|
-
exports.POPOVER_LABEL_ID = POPOVER_LABEL_ID;
|
|
79
|
-
exports.PROFILE_MENU_BUTTON_ID = PROFILE_MENU_BUTTON_ID;
|
|
80
|
-
exports.SEARCH_BUTTON_ID = SEARCH_BUTTON_ID;
|
|
81
|
-
exports.TRIAL_POPOVER_BUTTON_ID = TRIAL_POPOVER_BUTTON_ID;
|
|
82
|
-
//# sourceMappingURL=constant.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constant.js","sources":["../../../../../components/global-header/src/constant.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAAA;;;;;;;AAOG;AAEI,MAAM,2BAA2B,GAAG;AACpC,MAAM,4BAA4B,GAAG;AAErC,MAAM,SAAS,GAAG;AAClB,MAAM,wBAAwB,GAAG;AACjC,MAAM,gBAAgB,GAAG;AAEzB,MAAM,sBAAsB,GAAG,CAAA,EAAG,2BAA2B;AAC7D,MAAM,sBAAsB,GAAG,CAAA,EAAG,2BAA2B;AAC7D,MAAM,mBAAmB,GAAG,CAAA,EAAG,2BAA2B;AAC1D,MAAM,2BAA2B,GAAG,CAAA,EAAG,2BAA2B;AAClE,MAAM,uBAAuB,GAAG,CAAA,EAAG,2BAA2B;AAC9D,MAAM,sBAAsB,GAAG,CAAA,EAAG,2BAA2B;AAC7D,MAAM,gBAAgB,GAAG,CAAA,EAAG,2BAA2B;AACvD,MAAM,uBAAuB,GAAG,CAAA,EAAG,2BAA2B;AAE9D,MAAM,+BAA+B,GAAG;AAC7C,IAAA,KAAK,EAAE;AACL,QAAA,OAAO,EAAE,EAAE;AACX,QAAA,OAAO,EAAE,EAAE;AACZ,KAAA;AACD,IAAA,UAAU,EAAE,KAAK;AACjB,IAAA,iBAAiB,EAAE;AACjB,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,IAAI,EAAE,SAAS;AAChB,KAAA;AACD,IAAA,iBAAiB,EAAE,EAAE;AACrB,IAAA,kBAAkB,EAAE,EAAE;AACtB,IAAA,kBAAkB,EAAE;AAClB,QAAA;AACE,YAAA,IAAI,EAAE,EAAE;AACR,YAAA,IAAI,EAAE,0BAA0B;AAChC,YAAA,UAAU,EAAE,SAAS;AACrB,YAAA,UAAU,EAAE,oBAAoB;AACjC,SAAA;AACF,KAAA;AACD,IAAA,cAAc,EAAE;AACd,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,IAAI,EAAE,iBAAiB;AACvB,QAAA,IAAI,EAAE,YAAY;AACnB,KAAA;AACD,IAAA,eAAe,EAAE,EAAE;AACnB,IAAA,WAAW,EAAE,SAAS;;AAEjB,MAAM,4BAA4B,GAAG;AAC1C,IAAA;AACE,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,UAAU,EAAE,UAAU;AACtB,QAAA,UAAU,EAAE,MAAM;AACnB,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,UAAU,EAAE,OAAO;AACnB,QAAA,UAAU,EAAE,QAAQ;AACrB,KAAA;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*
|
|
4
|
-
* Copyright IBM Corp. 2025
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
import { CommonHeader } from './components/CommonHeader/CommonHeader';
|
|
10
|
-
/**
|
|
11
|
-
* Component extending the @carbon/web-components' button
|
|
12
|
-
*/
|
|
13
|
-
declare class globalHeader extends CommonHeader {
|
|
14
|
-
static styles: any;
|
|
15
|
-
}
|
|
16
|
-
export default globalHeader;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var CommonHeader = require('./components/CommonHeader/CommonHeader.js');
|
|
6
|
-
var index = require('./index.scss.js');
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @license
|
|
10
|
-
*
|
|
11
|
-
* Copyright IBM Corp. 2025
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
14
|
-
* LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Component extending the @carbon/web-components' button
|
|
18
|
-
*/
|
|
19
|
-
class globalHeader extends CommonHeader.CommonHeader {
|
|
20
|
-
}
|
|
21
|
-
globalHeader.styles = index.default;
|
|
22
|
-
|
|
23
|
-
exports.default = globalHeader;
|
|
24
|
-
//# sourceMappingURL=global-header.template.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"global-header.template.js","sources":["../../../../../components/global-header/src/global-header.template.ts"],"sourcesContent":[null],"names":["CommonHeader","styles"],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAMH;;AAEG;AACH,MAAM,YAAa,SAAQA,yBAAY,CAAA;;AAC9B,YAAA,CAAA,MAAM,GAAGC,aAAM;;;;"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*
|
|
4
|
-
* Copyright IBM Corp. 2025
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
import { HeaderProps } from '../types/Header.types';
|
|
10
|
-
export default function useScript(props: HeaderProps): string;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var utils = require('./utils.js');
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @license
|
|
9
|
-
*
|
|
10
|
-
* Copyright IBM Corp. 2025
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/
|
|
15
|
-
/* eslint jsdoc/require-jsdoc: 0 */
|
|
16
|
-
function useScript(props) {
|
|
17
|
-
var _a, _b, _c;
|
|
18
|
-
const assistMeUrl = utils.getAssistMeUrl((_a = props === null || props === void 0 ? void 0 : props.environment) !== null && _a !== void 0 ? _a : '');
|
|
19
|
-
const isAssistMeEnabled = (_b = props === null || props === void 0 ? void 0 : props.assistMeConfigs) === null || _b === void 0 ? void 0 : _b.productId;
|
|
20
|
-
let status = isAssistMeEnabled ? 'loading' : 'idle';
|
|
21
|
-
if (!isAssistMeEnabled) {
|
|
22
|
-
return 'idle';
|
|
23
|
-
}
|
|
24
|
-
let script = document === null || document === void 0 ? void 0 : document.querySelector(`script[src="${assistMeUrl}"]`);
|
|
25
|
-
if (!script) {
|
|
26
|
-
script = document.createElement('script');
|
|
27
|
-
script.src = assistMeUrl;
|
|
28
|
-
script.defer = true;
|
|
29
|
-
script.async = true;
|
|
30
|
-
script.crossOrigin = 'anonymous';
|
|
31
|
-
script.setAttribute('data-status', 'loading');
|
|
32
|
-
(_c = document === null || document === void 0 ? void 0 : document.body) === null || _c === void 0 ? void 0 : _c.appendChild(script);
|
|
33
|
-
const setAttributeFromEvent = (event) => {
|
|
34
|
-
script === null || script === void 0 ? void 0 : script.setAttribute('data-status', event.type === 'load' ? 'ready' : 'error');
|
|
35
|
-
document.dispatchEvent(new CustomEvent('assist-me-script-status', {
|
|
36
|
-
detail: { message: event.type },
|
|
37
|
-
bubbles: true,
|
|
38
|
-
composed: true,
|
|
39
|
-
}));
|
|
40
|
-
};
|
|
41
|
-
script.addEventListener('load', setAttributeFromEvent);
|
|
42
|
-
script.addEventListener('error', setAttributeFromEvent);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
status = script.getAttribute('data-status');
|
|
46
|
-
}
|
|
47
|
-
return status;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
exports.default = useScript;
|
|
51
|
-
//# sourceMappingURL=useScript.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useScript.js","sources":["../../../../../../components/global-header/src/globals/useScript.ts"],"sourcesContent":[null],"names":["getAssistMeUrl"],"mappings":";;;;;;AAAA;;;;;;;AAOG;AACH;AAKc,SAAU,SAAS,CAAC,KAAkB,EAAA;;AAClD,IAAA,MAAM,WAAW,GAAGA,oBAAc,CAAC,MAAA,KAAK,KAAA,IAAA,IAAL,KAAK,KAAA,MAAA,GAAA,MAAA,GAAL,KAAK,CAAE,WAAW,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAI,EAAE,CAAC;AAC5D,IAAA,MAAM,iBAAiB,GAAG,CAAA,EAAA,GAAA,KAAK,KAAA,IAAA,IAAL,KAAK,KAAA,MAAA,GAAA,MAAA,GAAL,KAAK,CAAE,eAAe,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,SAAS;IAE3D,IAAI,MAAM,GAAG,iBAAiB,GAAG,SAAS,GAAG,MAAM;IACnD,IAAI,CAAC,iBAAiB,EAAE;AACtB,QAAA,OAAO,MAAM;IACf;AAEA,IAAA,IAAI,MAAM,GAAG,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAA,MAAA,GAAA,MAAA,GAAR,QAAQ,CAAE,aAAa,CAClC,CAAA,YAAA,EAAe,WAAW,CAAA,EAAA,CAAI,CACV;IAEtB,IAAI,CAAC,MAAM,EAAE;AACX,QAAA,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC;AACzC,QAAA,MAAM,CAAC,GAAG,GAAG,WAAW;AACxB,QAAA,MAAM,CAAC,KAAK,GAAG,IAAI;AACnB,QAAA,MAAM,CAAC,KAAK,GAAG,IAAI;AACnB,QAAA,MAAM,CAAC,WAAW,GAAG,WAAW;AAChC,QAAA,MAAM,CAAC,YAAY,CAAC,aAAa,EAAE,SAAS,CAAC;AAE7C,QAAA,CAAA,EAAA,GAAA,QAAQ,KAAA,IAAA,IAAR,QAAQ,KAAA,MAAA,GAAA,MAAA,GAAR,QAAQ,CAAE,IAAI,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,WAAW,CAAC,MAAM,CAAC;AAEnC,QAAA,MAAM,qBAAqB,GAAG,CAAC,KAAuB,KAAI;YACxD,MAAM,KAAA,IAAA,IAAN,MAAM,KAAA,MAAA,GAAA,MAAA,GAAN,MAAM,CAAE,YAAY,CAClB,aAAa,EACb,KAAK,CAAC,IAAI,KAAK,MAAM,GAAG,OAAO,GAAG,OAAO,CAC1C;AAED,YAAA,QAAQ,CAAC,aAAa,CACpB,IAAI,WAAW,CAAC,yBAAyB,EAAE;AACzC,gBAAA,MAAM,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,IAAI,EAAE;AAC/B,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,IAAI;AACf,aAAA,CAAC,CACH;AACH,QAAA,CAAC;AAED,QAAA,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,qBAAqB,CAAC;AACtD,QAAA,MAAM,CAAC,gBAAgB,CAAC,OAAO,EAAE,qBAAqB,CAAC;IACzD;SAAO;AACL,QAAA,MAAM,GAAG,MAAM,CAAC,YAAY,CAAC,aAAa,CAAW;IACvD;AACA,IAAA,OAAO,MAAM;AACf;;;;"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*
|
|
4
|
-
* Copyright IBM Corp. 2025
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
import { EventProps } from '../types/Header.types';
|
|
10
|
-
export declare const ASSIST_ME_SCRIPT_DEV = "https://ibmassistme-dev.zll1vg8lrcq.us-south.codeengine.appdomain.cloud/resources/assist-me/controller.js";
|
|
11
|
-
export declare const ASSIST_ME_SCRIPT_PROD = "https://www.ibm.com/resources/assist-me/controller.js";
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @param {string} iconType string value for the carbon icon
|
|
15
|
-
* @param {number} size number to indicate the size of the icon
|
|
16
|
-
* @param {string} slot string name of the slot that the icon will be displayed in
|
|
17
|
-
* @returns an svg of the icon if it is found in CarbonIcons
|
|
18
|
-
*/
|
|
19
|
-
export declare const renderCarbonIcon: (iconType: string, size: number, slot?: string) => Element | import("lit-html").TemplateResult<1>;
|
|
20
|
-
export declare const isValidObject: (obj: unknown) => obj is Record<string, unknown>;
|
|
21
|
-
export declare function getAssistMeUrl(environment: string): "https://ibmassistme-dev.zll1vg8lrcq.us-south.codeengine.appdomain.cloud/resources/assist-me/controller.js" | "https://www.ibm.com/resources/assist-me/controller.js";
|
|
22
|
-
export declare const trackEvent: (eventName: string, props: EventProps) => void;
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var lit = require('lit');
|
|
4
|
-
var es = require('@carbon/icons/es');
|
|
5
|
-
var iconHelpers = require('@carbon/icon-helpers');
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* @license
|
|
9
|
-
*
|
|
10
|
-
* Copyright IBM Corp. 2025
|
|
11
|
-
*
|
|
12
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
13
|
-
* LICENSE file in the root directory of this source tree.
|
|
14
|
-
*/
|
|
15
|
-
/* eslint jsdoc/require-jsdoc: 0 */
|
|
16
|
-
const ASSIST_ME_SCRIPT_DEV = 'https://ibmassistme-dev.zll1vg8lrcq.us-south.codeengine.appdomain.cloud/resources/assist-me/controller.js';
|
|
17
|
-
const ASSIST_ME_SCRIPT_PROD = 'https://www.ibm.com/resources/assist-me/controller.js';
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @param {string} iconType string value for the carbon icon
|
|
21
|
-
* @param {number} size number to indicate the size of the icon
|
|
22
|
-
* @param {string} slot string name of the slot that the icon will be displayed in
|
|
23
|
-
* @returns an svg of the icon if it is found in CarbonIcons
|
|
24
|
-
*/
|
|
25
|
-
const renderCarbonIcon = (iconType, size, slot) => {
|
|
26
|
-
const iconWithSize = `${iconType}${size}`;
|
|
27
|
-
// console.log('iconWithSize', iconWithSize)
|
|
28
|
-
const CarbonIcons = {
|
|
29
|
-
AiLaunch20: es.AiLaunch20,
|
|
30
|
-
AppConnectivity20: es.AppConnectivity20,
|
|
31
|
-
ArrowRight16: es.ArrowRight16,
|
|
32
|
-
Checkmark16: es.Checkmark16,
|
|
33
|
-
Document16: es.Document16,
|
|
34
|
-
Email16: es.Email16,
|
|
35
|
-
Help20: es.Help20,
|
|
36
|
-
Home16: es.Home16,
|
|
37
|
-
IbmCloudKeyProtect16: es.IbmCloudKeyProtect16,
|
|
38
|
-
Launch16: es.Launch16,
|
|
39
|
-
Login16: es.Login16,
|
|
40
|
-
Logout16: es.Logout16,
|
|
41
|
-
Notification20: es.Notification20,
|
|
42
|
-
RequestQuote16: es.RequestQuote16,
|
|
43
|
-
Settings16: es.Settings16,
|
|
44
|
-
Share16: es.Share16,
|
|
45
|
-
User16: es.User16,
|
|
46
|
-
User20: es.User20,
|
|
47
|
-
User24: es.User24,
|
|
48
|
-
User32: es.User32,
|
|
49
|
-
UserFollow16: es.UserFollow16,
|
|
50
|
-
};
|
|
51
|
-
const iconsRecord = CarbonIcons;
|
|
52
|
-
const LocalIcon = iconsRecord[iconWithSize];
|
|
53
|
-
// Check if the icon exists
|
|
54
|
-
if (!LocalIcon) {
|
|
55
|
-
console.error(`Icon "${iconWithSize}" not found in CarbonIcons.`);
|
|
56
|
-
return lit.html `<div class="icon-container">Icon not found</div>`;
|
|
57
|
-
}
|
|
58
|
-
// Generate the SVG element with updated attributes
|
|
59
|
-
const svgElement = iconHelpers.toSVG({
|
|
60
|
-
...LocalIcon,
|
|
61
|
-
attrs: { ...iconHelpers.getAttributes(LocalIcon.attrs), slot },
|
|
62
|
-
});
|
|
63
|
-
// Serialize the SVG element to a string
|
|
64
|
-
// const svgString: string = new XMLSerializer().serializeToString(svgElement);
|
|
65
|
-
return svgElement;
|
|
66
|
-
};
|
|
67
|
-
const isValidObject = (obj) => {
|
|
68
|
-
return (obj !== null &&
|
|
69
|
-
typeof obj === 'object' &&
|
|
70
|
-
!Array.isArray(obj) &&
|
|
71
|
-
Object.keys(obj).length > 0);
|
|
72
|
-
};
|
|
73
|
-
function getAssistMeUrl(environment) {
|
|
74
|
-
switch (environment) {
|
|
75
|
-
case 'production':
|
|
76
|
-
return ASSIST_ME_SCRIPT_PROD;
|
|
77
|
-
default:
|
|
78
|
-
return ASSIST_ME_SCRIPT_DEV;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
const trackEvent = (eventName, props) => {
|
|
82
|
-
const analytics =
|
|
83
|
-
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
84
|
-
window === null || window === void 0 ? void 0 : window.bluemixAnalytics;
|
|
85
|
-
if (analytics) {
|
|
86
|
-
analytics.trackEvent(eventName, props);
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
exports.ASSIST_ME_SCRIPT_DEV = ASSIST_ME_SCRIPT_DEV;
|
|
91
|
-
exports.ASSIST_ME_SCRIPT_PROD = ASSIST_ME_SCRIPT_PROD;
|
|
92
|
-
exports.getAssistMeUrl = getAssistMeUrl;
|
|
93
|
-
exports.isValidObject = isValidObject;
|
|
94
|
-
exports.renderCarbonIcon = renderCarbonIcon;
|
|
95
|
-
exports.trackEvent = trackEvent;
|
|
96
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../../../../components/global-header/src/globals/utils.ts"],"sourcesContent":[null],"names":["AiLaunch20","AppConnectivity20","ArrowRight16","Checkmark16","Document16","Email16","Help20","Home16","IbmCloudKeyProtect16","Launch16","Login16","Logout16","Notification20","RequestQuote16","Settings16","Share16","User16","User20","User24","User32","UserFollow16","html","toSVG","getAttributes"],"mappings":";;;;;;AAAA;;;;;;;AAOG;AACH;AA8BO,MAAM,oBAAoB,GAC/B;AACK,MAAM,qBAAqB,GAChC;AAEF;;;;;;AAMG;AACI,MAAM,gBAAgB,GAAG,CAC9B,QAAgB,EAChB,IAAY,EACZ,IAAa,KACX;AACF,IAAA,MAAM,YAAY,GAAG,CAAA,EAAG,QAAQ,CAAA,EAAG,IAAI,EAAE;;AAGzC,IAAA,MAAM,WAAW,GAAG;oBAClBA,aAAU;2BACVC,oBAAiB;sBACjBC,eAAY;qBACZC,cAAW;oBACXC,aAAU;iBACVC,UAAO;gBACPC,SAAM;gBACNC,SAAM;8BACNC,uBAAoB;kBACpBC,WAAQ;iBACRC,UAAO;kBACPC,WAAQ;wBACRC,iBAAc;wBACdC,iBAAc;oBACdC,aAAU;iBACVC,UAAO;gBACPC,SAAM;gBACNC,SAAM;gBACNC,SAAM;gBACNC,SAAM;sBACNC,eAAY;KACb;IAED,MAAM,WAAW,GAAG,WAGnB;AACD,IAAA,MAAM,SAAS,GAAG,WAAW,CAAC,YAAY,CAAC;;IAG3C,IAAI,CAAC,SAAS,EAAE;AACd,QAAA,OAAO,CAAC,KAAK,CAAC,SAAS,YAAY,CAAA,2BAAA,CAA6B,CAAC;QACjE,OAAOC,QAAI,CAAA,CAAA,gDAAA,CAAkD;IAC/D;;IAGA,MAAM,UAAU,GAAYC,iBAAK,CAAC;AAChC,QAAA,GAAG,SAAS;QACZ,KAAK,EAAE,EAAE,GAAGC,yBAAa,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE;AACnD,KAAA,CAAC;;;AAIF,IAAA,OAAO,UAAU;AACnB;AAEO,MAAM,aAAa,GAAG,CAAC,GAAY,KAAoC;IAC5E,QACE,GAAG,KAAK,IAAI;QACZ,OAAO,GAAG,KAAK,QAAQ;AACvB,QAAA,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;QACnB,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,GAAG,CAAC;AAE/B;AAEM,SAAU,cAAc,CAAC,WAAmB,EAAA;IAChD,QAAQ,WAAW;AACjB,QAAA,KAAK,YAAY;AACf,YAAA,OAAO,qBAAqB;AAC9B,QAAA;AACE,YAAA,OAAO,oBAAoB;;AAEjC;MAEa,UAAU,GAAG,CAAC,SAAiB,EAAE,KAAiB,KAAI;AACjE,IAAA,MAAM,SAAS;;AAEZ,IAAA,MAAc,aAAd,MAAM,KAAA,MAAA,GAAA,MAAA,GAAN,MAAM,CAAU,gBAAgB;IACnC,IAAI,SAAS,EAAE;AACb,QAAA,SAAS,CAAC,UAAU,CAAC,SAAS,EAAE,KAAK,CAAC;IACxC;AACF;;;;;;;;;"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
*
|
|
4
|
-
* Copyright IBM Corp. 2025
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
-
* LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
export { CommonHeader } from './components/CommonHeader/CommonHeader';
|
|
10
|
-
export { HybridIpaasHeader } from './components/HybridIpaasHeader/HybridIpaasHeader';
|
|
11
|
-
export { LogoutHeader } from './components/LogoutHeader/LogoutHeader';
|
|
12
|
-
export { LogoutTile } from './components/LogoutTile/LogoutTile';
|