@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,238 +0,0 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
2
|
-
import { unsafeCSS, css, LitElement, html } from 'lit';
|
|
3
|
-
import { property, state, customElement } from 'lit/decorators.js';
|
|
4
|
-
import { settings } from '@carbon-labs/utilities/es/settings/index.js';
|
|
5
|
-
import { INITIAL_AUTOMATION_HEADER_PROPS } from '../../constant.js';
|
|
6
|
-
import '../CommonHeader/CommonHeader.js';
|
|
7
|
-
import styles from '../../index.scss.js';
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @license
|
|
11
|
-
*
|
|
12
|
-
* Copyright IBM Corp. 2025
|
|
13
|
-
*
|
|
14
|
-
* This source code is licensed under the Apache-2.0 license found in the
|
|
15
|
-
* LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/
|
|
17
|
-
/* eslint jsdoc/require-jsdoc: 0 */
|
|
18
|
-
const { stablePrefix: clabsPrefix } = settings;
|
|
19
|
-
/**
|
|
20
|
-
* Wrapper component that obtains header options from a backend route
|
|
21
|
-
*/
|
|
22
|
-
let HybridIpaasHeader = class HybridIpaasHeader extends LitElement {
|
|
23
|
-
constructor() {
|
|
24
|
-
super(...arguments);
|
|
25
|
-
this.productName = null;
|
|
26
|
-
this.productKey = '';
|
|
27
|
-
this.fetchHeaders = {};
|
|
28
|
-
this.basePath = '';
|
|
29
|
-
this.displayName = '';
|
|
30
|
-
this.userEmail = '';
|
|
31
|
-
this.productVersion = null;
|
|
32
|
-
this.assistMeKey = '';
|
|
33
|
-
this.aiCallbackEvent = '';
|
|
34
|
-
this.hasNewNotifications = false;
|
|
35
|
-
this.searchConfigs = null;
|
|
36
|
-
this.capabilityProfileFooterLinks = [];
|
|
37
|
-
this.capabilityGlobalActions = [];
|
|
38
|
-
this.headerOptions = { ...INITIAL_AUTOMATION_HEADER_PROPS };
|
|
39
|
-
}
|
|
40
|
-
firstUpdated() {
|
|
41
|
-
if (!this.productKey) {
|
|
42
|
-
console.error('A product key is required for the environment switcher to function.');
|
|
43
|
-
}
|
|
44
|
-
this.initializeHeaderOptions();
|
|
45
|
-
}
|
|
46
|
-
async initializeHeaderOptions() {
|
|
47
|
-
try {
|
|
48
|
-
const serverOptions = await this.loadIpaasHeaderOptionsFromServer(this.fetchHeaders, this.basePath, this.productKey);
|
|
49
|
-
this.headerOptions = this.buildHeaderOptions(serverOptions);
|
|
50
|
-
}
|
|
51
|
-
catch (error) {
|
|
52
|
-
console.error('Failed to load header options:', error);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
async loadIpaasHeaderOptionsFromServer(headers, basePath, productKey) {
|
|
56
|
-
headers = headers || {};
|
|
57
|
-
headers['x-hybrid-ipaas-product-key'] = productKey;
|
|
58
|
-
const fetchRoute = basePath
|
|
59
|
-
? basePath + '/hybrid-ipaas/v1/header/options'
|
|
60
|
-
: '/hybrid-ipaas/v1/header/options';
|
|
61
|
-
const response = await fetch(fetchRoute, {
|
|
62
|
-
credentials: 'same-origin',
|
|
63
|
-
headers,
|
|
64
|
-
});
|
|
65
|
-
if (!response.ok) {
|
|
66
|
-
throw new Error(`Failed to fetch header options: ${response.statusText}`);
|
|
67
|
-
}
|
|
68
|
-
return response.json();
|
|
69
|
-
}
|
|
70
|
-
initLogoutLink() {
|
|
71
|
-
const footerLink = {
|
|
72
|
-
text: 'Logout',
|
|
73
|
-
carbonIcon: 'Logout',
|
|
74
|
-
arialLabel: 'Logout',
|
|
75
|
-
};
|
|
76
|
-
if (this.logoutCallback) {
|
|
77
|
-
footerLink.onClickHandler = this.logoutCallback;
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
footerLink.href = `${this.basePath}/logout`;
|
|
81
|
-
}
|
|
82
|
-
return footerLink;
|
|
83
|
-
}
|
|
84
|
-
buildHeaderOptions(baseOptions) {
|
|
85
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
86
|
-
const overrideProfile = {
|
|
87
|
-
email: this.userEmail,
|
|
88
|
-
displayName: this.displayName,
|
|
89
|
-
};
|
|
90
|
-
const mainSectionItems = [];
|
|
91
|
-
if (this.productName) {
|
|
92
|
-
mainSectionItems.push({ label: 'Product', text: this.productName });
|
|
93
|
-
}
|
|
94
|
-
if (this.productVersion) {
|
|
95
|
-
mainSectionItems.push({ label: 'Version', text: this.productVersion });
|
|
96
|
-
}
|
|
97
|
-
if (baseOptions.mainSectionItems &&
|
|
98
|
-
baseOptions.mainSectionItems.length > 0) {
|
|
99
|
-
baseOptions.mainSectionItems.forEach((item) => {
|
|
100
|
-
mainSectionItems.push(item);
|
|
101
|
-
});
|
|
102
|
-
} // This is unlikely to be needed but keeping in case anything is passed back in mainSectionItems
|
|
103
|
-
const overrideCapabilityName = {
|
|
104
|
-
label: this.productName ? this.productName : '',
|
|
105
|
-
};
|
|
106
|
-
const logoutIndex = (_a = baseOptions.profileFooterLinks) === null || _a === void 0 ? void 0 : _a.findIndex((link) => link.text.toLowerCase() === 'logout');
|
|
107
|
-
if (logoutIndex !== undefined && logoutIndex > -1) {
|
|
108
|
-
(_b = baseOptions.profileFooterLinks) === null || _b === void 0 ? void 0 : _b.splice(logoutIndex, 1, this.initLogoutLink());
|
|
109
|
-
}
|
|
110
|
-
else {
|
|
111
|
-
(_c = baseOptions.profileFooterLinks) === null || _c === void 0 ? void 0 : _c.push(this.initLogoutLink());
|
|
112
|
-
} // override the 'logout' object if it comes from the service to avoid duplicate
|
|
113
|
-
// The assumption is that input props take priority over values provided by the service
|
|
114
|
-
const updatedOptions = {
|
|
115
|
-
...baseOptions,
|
|
116
|
-
capabilityName: this.productName === null
|
|
117
|
-
? baseOptions.capabilityName
|
|
118
|
-
: overrideCapabilityName,
|
|
119
|
-
profile: this.userEmail === '' || this.displayName === ''
|
|
120
|
-
? baseOptions.profile
|
|
121
|
-
: overrideProfile,
|
|
122
|
-
mainSectionItems: mainSectionItems,
|
|
123
|
-
};
|
|
124
|
-
// Add assistMeConfigs if assistMeKey exists
|
|
125
|
-
if (this.assistMeKey) {
|
|
126
|
-
updatedOptions.assistMeConfigs = {
|
|
127
|
-
productId: this.assistMeKey,
|
|
128
|
-
};
|
|
129
|
-
}
|
|
130
|
-
if (this.notificationOpenCallback) {
|
|
131
|
-
updatedOptions.notificationConfigs = {
|
|
132
|
-
onClick: this.notificationOpenCallback,
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
if (this.searchConfigs) {
|
|
136
|
-
updatedOptions.searchConfigs = {
|
|
137
|
-
placeholder: (_e = (_d = this.searchConfigs) === null || _d === void 0 ? void 0 : _d.placeholder) !== null && _e !== void 0 ? _e : 'Search',
|
|
138
|
-
callback: (_f = this.searchConfigs) === null || _f === void 0 ? void 0 : _f.callback,
|
|
139
|
-
submitCallback: (_g = this.searchConfigs) === null || _g === void 0 ? void 0 : _g.submitCallback,
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
if (this.aiCallback) {
|
|
143
|
-
updatedOptions.chatBotConfigs = {
|
|
144
|
-
onClick: this.aiCallback,
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
if (this.aiCallbackEvent) {
|
|
148
|
-
updatedOptions.chatBotConfigs = {
|
|
149
|
-
onClick: () => {
|
|
150
|
-
const event = new CustomEvent(this.aiCallbackEvent, {
|
|
151
|
-
bubbles: true,
|
|
152
|
-
cancelable: true,
|
|
153
|
-
});
|
|
154
|
-
this.dispatchEvent(event);
|
|
155
|
-
},
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
if (this.capabilityProfileFooterLinks &&
|
|
159
|
-
this.capabilityProfileFooterLinks.length > 0) {
|
|
160
|
-
updatedOptions.profileFooterLinks = [
|
|
161
|
-
...this.capabilityProfileFooterLinks,
|
|
162
|
-
...((_h = updatedOptions.profileFooterLinks) !== null && _h !== void 0 ? _h : []),
|
|
163
|
-
];
|
|
164
|
-
}
|
|
165
|
-
if (this.capabilityGlobalActions &&
|
|
166
|
-
this.capabilityGlobalActions.length > 0) {
|
|
167
|
-
updatedOptions.globalActionConfigs = [...this.capabilityGlobalActions];
|
|
168
|
-
}
|
|
169
|
-
return updatedOptions;
|
|
170
|
-
}
|
|
171
|
-
render() {
|
|
172
|
-
return html `<div id="ipaas-header-container">
|
|
173
|
-
<clabs-global-header-apaas
|
|
174
|
-
?hasNewNotifications="${this.hasNewNotifications}"
|
|
175
|
-
.headerProps="${this.headerOptions}"></clabs-global-header-apaas>
|
|
176
|
-
</div>`;
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
HybridIpaasHeader.styles = css `
|
|
180
|
-
${unsafeCSS(styles)}
|
|
181
|
-
`;
|
|
182
|
-
__decorate([
|
|
183
|
-
property({ type: String })
|
|
184
|
-
], HybridIpaasHeader.prototype, "productName", void 0);
|
|
185
|
-
__decorate([
|
|
186
|
-
property({ type: String })
|
|
187
|
-
], HybridIpaasHeader.prototype, "productKey", void 0);
|
|
188
|
-
__decorate([
|
|
189
|
-
property({ type: Object })
|
|
190
|
-
], HybridIpaasHeader.prototype, "fetchHeaders", void 0);
|
|
191
|
-
__decorate([
|
|
192
|
-
property({ type: String })
|
|
193
|
-
], HybridIpaasHeader.prototype, "basePath", void 0);
|
|
194
|
-
__decorate([
|
|
195
|
-
property({ type: String })
|
|
196
|
-
], HybridIpaasHeader.prototype, "displayName", void 0);
|
|
197
|
-
__decorate([
|
|
198
|
-
property({ type: String })
|
|
199
|
-
], HybridIpaasHeader.prototype, "userEmail", void 0);
|
|
200
|
-
__decorate([
|
|
201
|
-
property({ type: String })
|
|
202
|
-
], HybridIpaasHeader.prototype, "productVersion", void 0);
|
|
203
|
-
__decorate([
|
|
204
|
-
property({ type: String })
|
|
205
|
-
], HybridIpaasHeader.prototype, "assistMeKey", void 0);
|
|
206
|
-
__decorate([
|
|
207
|
-
property({ type: Function })
|
|
208
|
-
], HybridIpaasHeader.prototype, "aiCallback", void 0);
|
|
209
|
-
__decorate([
|
|
210
|
-
property({ type: String })
|
|
211
|
-
], HybridIpaasHeader.prototype, "aiCallbackEvent", void 0);
|
|
212
|
-
__decorate([
|
|
213
|
-
property({ type: Function })
|
|
214
|
-
], HybridIpaasHeader.prototype, "logoutCallback", void 0);
|
|
215
|
-
__decorate([
|
|
216
|
-
property({ type: Function })
|
|
217
|
-
], HybridIpaasHeader.prototype, "notificationOpenCallback", void 0);
|
|
218
|
-
__decorate([
|
|
219
|
-
property({ type: Boolean })
|
|
220
|
-
], HybridIpaasHeader.prototype, "hasNewNotifications", void 0);
|
|
221
|
-
__decorate([
|
|
222
|
-
property({ type: Object })
|
|
223
|
-
], HybridIpaasHeader.prototype, "searchConfigs", void 0);
|
|
224
|
-
__decorate([
|
|
225
|
-
property({ type: Array })
|
|
226
|
-
], HybridIpaasHeader.prototype, "capabilityProfileFooterLinks", void 0);
|
|
227
|
-
__decorate([
|
|
228
|
-
property({ type: Array })
|
|
229
|
-
], HybridIpaasHeader.prototype, "capabilityGlobalActions", void 0);
|
|
230
|
-
__decorate([
|
|
231
|
-
state()
|
|
232
|
-
], HybridIpaasHeader.prototype, "headerOptions", void 0);
|
|
233
|
-
HybridIpaasHeader = __decorate([
|
|
234
|
-
customElement(`${clabsPrefix}-global-header-hybrid-ipaas`)
|
|
235
|
-
], HybridIpaasHeader);
|
|
236
|
-
|
|
237
|
-
export { HybridIpaasHeader };
|
|
238
|
-
//# sourceMappingURL=HybridIpaasHeader.js.map
|
package/es/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HybridIpaasHeader.js","sources":["../../../../../../../components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;AAAA;;;;;;;AAOG;AACH;AAgBA,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,QAAQ;AAE9C;;AAEG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,UAAU,CAAA;AAA1C,IAAA,WAAA,GAAA;;QAKuB,IAAA,CAAA,WAAW,GAAG,IAAI;QAClB,IAAA,CAAA,UAAU,GAAG,EAAE;QACf,IAAA,CAAA,YAAY,GAAG,EAAE;QACjB,IAAA,CAAA,QAAQ,GAAG,EAAE;QACb,IAAA,CAAA,WAAW,GAAG,EAAE;QAChB,IAAA,CAAA,SAAS,GAAG,EAAE;QACd,IAAA,CAAA,cAAc,GAAG,IAAI;QACrB,IAAA,CAAA,WAAW,GAAG,EAAE;QAEhB,IAAA,CAAA,eAAe,GAAG,EAAE;QAKnB,IAAA,CAAA,mBAAmB,GAAG,KAAK;QAC5B,IAAA,CAAA,aAAa,GAAyB,IAAI;QAEtE,IAAA,CAAA,4BAA4B,GAAyB,EAAE;QAC5B,IAAA,CAAA,uBAAuB,GAAyB,EAAE;AAE7E,QAAA,IAAA,CAAA,aAAa,GAAgB,EAAE,GAAG,+BAA+B,EAAE;IAoLrE;IAlLE,YAAY,GAAA;AACV,QAAA,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;AACpB,YAAA,OAAO,CAAC,KAAK,CACX,qEAAqE,CACtE;QACH;QACA,IAAI,CAAC,uBAAuB,EAAE;IAChC;AAEO,IAAA,MAAM,uBAAuB,GAAA;AAClC,QAAA,IAAI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AA,iBAAiB,CA6M7B;;;;"}
|
|
@@ -1,20 +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 type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
10
|
-
import { HybridIpaasHeader } from '../HybridIpaasHeader';
|
|
11
|
-
declare const meta: Meta;
|
|
12
|
-
export default meta;
|
|
13
|
-
type Story = StoryObj<typeof HybridIpaasHeader>;
|
|
14
|
-
export declare const Basic: Story;
|
|
15
|
-
export declare const BasicWithTrial: Story;
|
|
16
|
-
export declare const WithAIChat: Story;
|
|
17
|
-
export declare const CustomFooter: Story;
|
|
18
|
-
export declare const LogoutCallback: Story;
|
|
19
|
-
export declare const CustomActions: Story;
|
|
20
|
-
export declare const SearchCallback: Story;
|
|
@@ -1,17 +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 { LitElement } from 'lit';
|
|
10
|
-
/**
|
|
11
|
-
* Component to show a company name or logo
|
|
12
|
-
*/
|
|
13
|
-
export declare class LogoutHeader extends LitElement {
|
|
14
|
-
static styles: import("lit").CSSResult;
|
|
15
|
-
brandCompany: string;
|
|
16
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
17
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
2
|
-
import { html, unsafeCSS, css, LitElement } from 'lit';
|
|
3
|
-
import { property, customElement } from 'lit/decorators.js';
|
|
4
|
-
import { settings } from '@carbon-labs/utilities/es/settings/index.js';
|
|
5
|
-
import { AUTOMATION_HEADER_BASE_CLASS } from '../../constant.js';
|
|
6
|
-
import styles from './_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
|
-
/* eslint jsdoc/require-jsdoc: 0 */
|
|
17
|
-
const { stablePrefix: clabsPrefix } = settings;
|
|
18
|
-
const blockClass = `${AUTOMATION_HEADER_BASE_CLASS}__logout-header`;
|
|
19
|
-
const eightBar = html `
|
|
20
|
-
<svg
|
|
21
|
-
width="45"
|
|
22
|
-
height="18"
|
|
23
|
-
viewBox="0 0 45 18"
|
|
24
|
-
fill="none"
|
|
25
|
-
xmlns="http://www.w3.org/2000/svg">
|
|
26
|
-
<path
|
|
27
|
-
d="M0 16.8535H8.75V18H0V16.8535ZM0 15.5924H8.75V14.4459H0V15.5924ZM2.5 13.1847H6.25V12.0382H2.5V13.1847ZM2.5 10.7771H6.25V9.63057H2.5V10.7771ZM2.5 8.36943H6.25V7.22293H2.5V8.36943ZM6.25 4.81529H2.5V5.96178H6.25V4.81529ZM0 3.55414H8.75V2.40764H0V3.55414ZM0 1.1465H8.75V0H0V1.1465ZM10 18H19.2045C20.3833 18 21.4615 17.568 22.2942 16.8535H10V18ZM10 15.5924H23.3373C23.5415 15.2364 23.7019 14.8519 23.8109 14.4459H10.0001L10 15.5924ZM12.5 13.1847H16.25V12.0382H12.5V13.1847ZM12.5 7.22293V8.36943H22.4194C22.7799 8.03752 23.0903 7.65161 23.3365 7.22293H12.5ZM23.8108 3.55414C23.7018 3.14805 23.5414 2.76363 23.3372 2.40764H9.99989V3.55414H23.8107H23.8108ZM12.5 5.96178H16.25V4.81529H12.5V5.96178ZM19.7727 5.96178H23.8383C23.9275 5.5941 23.9773 5.21083 23.9773 4.81529H19.7727V5.96178ZM19.7727 12.0382V13.1847H23.9773C23.9773 12.7892 23.9275 12.4059 23.8383 12.0382H19.7727ZM22.4194 9.63057H12.5V10.7771H23.3365C23.0902 10.3484 22.7799 9.96248 22.4194 9.63057ZM22.2942 1.1465C21.4615 0.432 20.3833 0 19.2045 0H10V1.1465H22.2942ZM25 18H31.25V16.8535H25V18ZM25 15.5924H31.25V14.4459H25V15.5924ZM27.5 13.1847H31.25V12.0382H27.5V13.1847ZM27.5 10.7771H31.25V9.63057H27.5V10.7771ZM38.75 18H45V16.8535H38.75V18ZM38.75 15.5924H45V14.4459H38.75V15.5924ZM38.75 13.1847H42.5V12.0382H38.75V13.1847ZM42.5 9.63057H38.75V10.7771H42.5V9.63057ZM38.75 8.36943H42.5V7.22293H35.4709L35.0767 8.36943H38.368L38.75 7.2775V8.36943ZM42.5 4.81529H36.2989L35.9047 5.96178H42.5001V4.81529H42.5ZM37.9545 0L37.5603 1.1465H45V0H37.9545ZM35 18L35.399 16.8535H34.6009L34.9999 18H35ZM34.1597 15.5924H35.8403L36.2416 14.4459H33.7585L34.1597 15.5924ZM33.3172 13.1847H36.683L37.0842 12.0382H32.916L33.3172 13.1847ZM32.4747 10.7771H37.5255L37.9267 9.63057H32.0735L32.4748 10.7771H32.4747ZM27.5 5.96178H34.0955L33.7013 4.81529H27.5V5.96178ZM36.7325 3.55414H45V2.40764H37.1267L36.7325 3.55414ZM32.8734 2.40764H25.0001V3.55414H33.2677L32.8734 2.40764ZM32.0456 0H25.0001V1.1465H32.4398L32.0456 0ZM34.9234 8.36943L34.5292 7.22293H27.5001V8.36943H31.2501V7.28129L31.6323 8.36943H34.9235H34.9234Z"
|
|
28
|
-
fill="#161616" />
|
|
29
|
-
</svg>
|
|
30
|
-
`;
|
|
31
|
-
/**
|
|
32
|
-
* Component to show a company name or logo
|
|
33
|
-
*/
|
|
34
|
-
let LogoutHeader = class LogoutHeader extends LitElement {
|
|
35
|
-
constructor() {
|
|
36
|
-
super(...arguments);
|
|
37
|
-
this.brandCompany = '';
|
|
38
|
-
}
|
|
39
|
-
render() {
|
|
40
|
-
return html ` <cds-custom-header class="${blockClass}">
|
|
41
|
-
<cds-custom-header-name>
|
|
42
|
-
${this.brandCompany === 'IBM' ? eightBar : this.brandCompany}
|
|
43
|
-
</cds-custom-header-name>
|
|
44
|
-
</cds-custom-header>`;
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
LogoutHeader.styles = css `
|
|
48
|
-
${unsafeCSS([styles])}
|
|
49
|
-
`;
|
|
50
|
-
__decorate([
|
|
51
|
-
property({ type: String })
|
|
52
|
-
], LogoutHeader.prototype, "brandCompany", void 0);
|
|
53
|
-
LogoutHeader = __decorate([
|
|
54
|
-
customElement(`${clabsPrefix}-global-header-logout-banner`)
|
|
55
|
-
], LogoutHeader);
|
|
56
|
-
|
|
57
|
-
export { LogoutHeader };
|
|
58
|
-
//# sourceMappingURL=LogoutHeader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LogoutHeader.js","sources":["../../../../../../../components/global-header/src/components/LogoutHeader/LogoutHeader.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AACH;AAQA,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,QAAQ;AAC9C,MAAM,UAAU,GAAG,CAAA,EAAG,4BAA4B,iBAAiB;AAEnE,MAAM,QAAQ,GAAG,IAAI,CAAA;;;;;;;;;;;CAWpB;AAED;;AAEG;AAEI,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU,CAAA;AAArC,IAAA,WAAA,GAAA;;QAKuB,IAAA,CAAA,YAAY,GAAG,EAAE;IAS/C;IAPE,MAAM,GAAA;QACJ,OAAO,IAAI,CAAA,CAAA,2BAAA,EAA8B,UAAU,CAAA;;AAE7C,QAAA,EAAA,IAAI,CAAC,YAAY,KAAK,KAAK,GAAG,QAAQ,GAAG,IAAI,CAAC,YAAY;;yBAE3C;IACvB;;AAZO,YAAA,CAAA,MAAM,GAAG,GAAG,CAAA;AACf,IAAA,EAAA,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AACtB,EAAA,CAFY;AAIe,UAAA,CAAA;AAA3B,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAAoB,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AALnC,YAAY,GAAA,UAAA,CAAA;AADxB,IAAA,aAAa,CAAC,CAAA,EAAG,WAAW,CAAA,4BAAA,CAA8B;AAC9C,CAAA,EAAA,YAAY,CAcxB;;;;"}
|
|
@@ -1,15 +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 type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
10
|
-
import { LogoutHeader } from '../LogoutHeader';
|
|
11
|
-
declare const meta: Meta;
|
|
12
|
-
export default meta;
|
|
13
|
-
type Story = StoryObj<typeof LogoutHeader>;
|
|
14
|
-
export declare const Basic: Story;
|
|
15
|
-
export declare const Corporate: Story;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_index.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,24 +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 { LitElement } from 'lit';
|
|
10
|
-
import '@carbon/web-components/es-custom/components/tile/index.js';
|
|
11
|
-
import '@carbon/web-components/es-custom/components/button/index.js';
|
|
12
|
-
/**
|
|
13
|
-
* Logged out dialog
|
|
14
|
-
*/
|
|
15
|
-
export declare class LogoutTile extends LitElement {
|
|
16
|
-
static styles: import("lit").CSSResult;
|
|
17
|
-
brandCompany: string;
|
|
18
|
-
brandProduct: string;
|
|
19
|
-
logoutText: string;
|
|
20
|
-
buttonLabel: string;
|
|
21
|
-
loginHref: string;
|
|
22
|
-
constructor();
|
|
23
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
24
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
2
|
-
import { unsafeCSS, css, LitElement, html } from 'lit';
|
|
3
|
-
import { property, customElement } from 'lit/decorators.js';
|
|
4
|
-
import '@carbon/web-components/es-custom/components/tile/index.js';
|
|
5
|
-
import '@carbon/web-components/es-custom/components/button/index.js';
|
|
6
|
-
import { settings } from '@carbon-labs/utilities/es/settings/index.js';
|
|
7
|
-
import { renderCarbonIcon } from '../../globals/utils.js';
|
|
8
|
-
import { AUTOMATION_HEADER_BASE_CLASS } from '../../constant.js';
|
|
9
|
-
import styles from './_index.scss.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 { stablePrefix: clabsPrefix } = settings;
|
|
21
|
-
const blockClass = `${AUTOMATION_HEADER_BASE_CLASS}__logout-tile`;
|
|
22
|
-
/**
|
|
23
|
-
* Logged out dialog
|
|
24
|
-
*/
|
|
25
|
-
let LogoutTile = class LogoutTile extends LitElement {
|
|
26
|
-
constructor() {
|
|
27
|
-
super();
|
|
28
|
-
this.brandCompany = '';
|
|
29
|
-
this.brandProduct = '';
|
|
30
|
-
this.logoutText = '';
|
|
31
|
-
this.buttonLabel = '';
|
|
32
|
-
this.loginHref = '';
|
|
33
|
-
}
|
|
34
|
-
render() {
|
|
35
|
-
return html `<cds-custom-tile class="${blockClass}">
|
|
36
|
-
<div>
|
|
37
|
-
<span class="${blockClass}--brand">${this.brandCompany}</span>
|
|
38
|
-
<span class="${blockClass}--product">${this.brandProduct}</span>
|
|
39
|
-
</div>
|
|
40
|
-
<div class="${blockClass}--description">${this.logoutText}</div>
|
|
41
|
-
<div class="${blockClass}--button">
|
|
42
|
-
<cds-custom-button size="xl" href="${this.loginHref}">
|
|
43
|
-
${this.buttonLabel} ${renderCarbonIcon('ArrowRight', 16, 'icon')}
|
|
44
|
-
</cds-custom-button>
|
|
45
|
-
</div>
|
|
46
|
-
</cds-custom-tile>`;
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
LogoutTile.styles = css `
|
|
50
|
-
${unsafeCSS([styles])}
|
|
51
|
-
`;
|
|
52
|
-
__decorate([
|
|
53
|
-
property({ type: String })
|
|
54
|
-
], LogoutTile.prototype, "brandCompany", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
property({ type: String })
|
|
57
|
-
], LogoutTile.prototype, "brandProduct", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
property({ type: String })
|
|
60
|
-
], LogoutTile.prototype, "logoutText", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
property({ type: String })
|
|
63
|
-
], LogoutTile.prototype, "buttonLabel", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
property({ type: String })
|
|
66
|
-
], LogoutTile.prototype, "loginHref", void 0);
|
|
67
|
-
LogoutTile = __decorate([
|
|
68
|
-
customElement(`${clabsPrefix}-global-header-logout-tile`)
|
|
69
|
-
], LogoutTile);
|
|
70
|
-
|
|
71
|
-
export { LogoutTile };
|
|
72
|
-
//# sourceMappingURL=LogoutTile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LogoutTile.js","sources":["../../../../../../../components/global-header/src/components/LogoutTile/LogoutTile.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;;;AAOG;AACH;AAYA,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,QAAQ;AAC9C,MAAM,UAAU,GAAG,CAAA,EAAG,4BAA4B,eAAe;AAEjE;;AAEG;AAEI,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,UAAU,CAAA;AAWxC,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QAPmB,IAAA,CAAA,YAAY,GAAG,EAAE;QACjB,IAAA,CAAA,YAAY,GAAG,EAAE;QACjB,IAAA,CAAA,UAAU,GAAG,EAAE;QACf,IAAA,CAAA,WAAW,GAAG,EAAE;QAChB,IAAA,CAAA,SAAS,GAAG,EAAE;IAI1C;IAEA,MAAM,GAAA;QACJ,OAAO,IAAI,CAAA,CAAA,wBAAA,EAA2B,UAAU,CAAA;;uBAE7B,UAAU,CAAA,SAAA,EAAY,IAAI,CAAC,YAAY,CAAA;uBACvC,UAAU,CAAA,WAAA,EAAc,IAAI,CAAC,YAAY,CAAA;;oBAE5C,UAAU,CAAA,eAAA,EAAkB,IAAI,CAAC,UAAU,CAAA;oBAC3C,UAAU,CAAA;AACe,2CAAA,EAAA,IAAI,CAAC,SAAS,CAAA;YAC/C,IAAI,CAAC,WAAW,CAAA,CAAA,EAAI,gBAAgB,CAAC,YAAY,EAAE,EAAE,EAAE,MAAM,CAAC;;;uBAGnD;IACrB;;AA3BO,UAAA,CAAA,MAAM,GAAG,GAAG,CAAA;AACf,IAAA,EAAA,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AACtB,EAAA,CAFY;AAIe,UAAA,CAAA;AAA3B,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAAoB,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAClB,UAAA,CAAA;AAA3B,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAAoB,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAClB,UAAA,CAAA;AAA3B,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAAkB,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAChB,UAAA,CAAA;AAA3B,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAAmB,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,aAAA,EAAA,MAAA,CAAA;AACjB,UAAA,CAAA;AAA3B,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAAiB,CAAA,EAAA,UAAA,CAAA,SAAA,EAAA,WAAA,EAAA,MAAA,CAAA;AAThC,UAAU,GAAA,UAAA,CAAA;AADtB,IAAA,aAAa,CAAC,CAAA,EAAG,WAAW,CAAA,0BAAA,CAA4B;AAC5C,CAAA,EAAA,UAAU,CA6BtB;;;;"}
|
package/es/components/global-header/src/components/LogoutTile/__stories__/LogoutTile.stories.d.ts
DELETED
|
@@ -1,14 +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 type { Meta, StoryObj } from '@storybook/web-components-vite';
|
|
10
|
-
import { LogoutTile } from '../LogoutTile';
|
|
11
|
-
declare const meta: Meta;
|
|
12
|
-
export default meta;
|
|
13
|
-
type Story = StoryObj<typeof LogoutTile>;
|
|
14
|
-
export declare const Basic: Story;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
|
|
3
|
-
var styles = css([".automation-global-header__logout-tile{block-size:10rem;inline-size:25rem}.automation-global-header__logout-tile--brand{margin-inline-end:.75rem}.automation-global-header__logout-tile--brand,.automation-global-header__logout-tile--product{font-size:var(--cds-heading-05-font-size,2rem);font-weight:var(--cds-heading-05-font-weight,400);letter-spacing:var(--cds-heading-05-letter-spacing,0);line-height:var(--cds-heading-05-line-height,1.25)}.automation-global-header__logout-tile--product{font-weight:700}.automation-global-header__logout-tile--description{font-size:var(--cds-heading-03-font-size,1.25rem);font-weight:var(--cds-heading-03-font-weight,400);font-weight:400;letter-spacing:var(--cds-heading-03-letter-spacing,0);line-height:var(--cds-heading-03-line-height,1.4);margin-block-start:.25rem}.automation-global-header__logout-tile--button{inset-block-end:0;inset-inline-end:0;position:absolute}.automation-global-header__logout-tile--button a{inline-size:11rem}.automation-global-header__logout-tile--button button{inline-size:15rem}"]);
|
|
4
|
-
|
|
5
|
-
export { styles as default };
|
|
6
|
-
//# sourceMappingURL=_index.scss.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_index.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -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 { LitElement } from 'lit';
|
|
10
|
-
import { HeaderContextProps } from '../HeaderContext/HeaderContext.types';
|
|
11
|
-
/**
|
|
12
|
-
* Contents of the profile menu
|
|
13
|
-
*/
|
|
14
|
-
export declare class AuthContext extends LitElement {
|
|
15
|
-
static styles: import("lit").CSSResult;
|
|
16
|
-
profileOpen: boolean;
|
|
17
|
-
props: HeaderContextProps;
|
|
18
|
-
constructor();
|
|
19
|
-
updated(changedProperties: Map<string | number | symbol, unknown>): void;
|
|
20
|
-
handleOutsideClick(event: MouseEvent): void;
|
|
21
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
22
|
-
}
|