@carbon-labs/wc-global-header 0.11.0 → 0.13.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/components/global-header/src/components/HeaderContext/__tests__/HeaderContext.test.d.ts → declarations.d.ts} +1 -1
- package/es/wc-global-header.css +8 -0
- package/es/wc-global-header.mjs +7184 -0
- package/package.json +10 -8
- 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/_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
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,IA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B,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,8BAAA,EAAA,MAAA,CAAA;AAC7B,UAAA,CAAA;AAA1B,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE;AAAqD,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,yBAAA,EAAA,MAAA,CAAA;AAE9E,UAAA,CAAA;AADC,IAAA,KAAK;AAC8D,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,eAAA,EAAA,MAAA,CAAA;AAzBzD,iBAAiB,GAAA,UAAA,CAAA;AAD7B,IAAA,aAAa,CAAC,CAAA,EAAG,WAAW,CAAA,2BAAA,CAA6B;AAC7C,CAAA,EAAA,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,UA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@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
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
2
|
-
import { unsafeCSS, css, LitElement, nothing, html } from 'lit';
|
|
3
|
-
import { property, customElement } from 'lit/decorators.js';
|
|
4
|
-
import styles from './_index.scss.js';
|
|
5
|
-
import { animate, fadeOut, fadeIn } from '@lit-labs/motion';
|
|
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
|
-
/**
|
|
17
|
-
* Contents of the profile menu
|
|
18
|
-
*/
|
|
19
|
-
let AuthContext = class AuthContext extends LitElement {
|
|
20
|
-
constructor() {
|
|
21
|
-
super();
|
|
22
|
-
this.profileOpen = false;
|
|
23
|
-
this.props = {
|
|
24
|
-
footerSectionItems: [],
|
|
25
|
-
managementConsole: {
|
|
26
|
-
href: '',
|
|
27
|
-
text: '',
|
|
28
|
-
},
|
|
29
|
-
userManagement: {
|
|
30
|
-
href: '',
|
|
31
|
-
text: '',
|
|
32
|
-
icon: '',
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
this.handleOutsideClick = this.handleOutsideClick.bind(this);
|
|
36
|
-
}
|
|
37
|
-
updated(changedProperties) {
|
|
38
|
-
if (changedProperties.has('profileOpen')) {
|
|
39
|
-
if (this.profileOpen) {
|
|
40
|
-
document.addEventListener('click', this.handleOutsideClick);
|
|
41
|
-
}
|
|
42
|
-
else {
|
|
43
|
-
document.removeEventListener('click', this.handleOutsideClick);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
handleOutsideClick(event) {
|
|
48
|
-
const path = event.composedPath();
|
|
49
|
-
if (!path.includes(this)) {
|
|
50
|
-
const toggleEvent = new CustomEvent('profile-toggle', {
|
|
51
|
-
bubbles: true,
|
|
52
|
-
composed: true,
|
|
53
|
-
}); // event to trigger the parent component to update the toggle value
|
|
54
|
-
this.dispatchEvent(toggleEvent);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
render() {
|
|
58
|
-
const { profile, mainSectionItems, footerSectionItems, userManagement, managementConsole, profileFooterLinks, } = this.props;
|
|
59
|
-
return html `
|
|
60
|
-
<cds-custom-popover
|
|
61
|
-
?open="${this.profileOpen}"
|
|
62
|
-
tabTip
|
|
63
|
-
align="bottom-right">
|
|
64
|
-
<slot></slot>
|
|
65
|
-
<cds-custom-popover-content>
|
|
66
|
-
${this.profileOpen
|
|
67
|
-
? html ` <div
|
|
68
|
-
class="automation-header__tooltip"
|
|
69
|
-
${animate({ in: fadeIn, out: fadeOut })}>
|
|
70
|
-
<apaas-auth-context
|
|
71
|
-
.props="${{
|
|
72
|
-
profile,
|
|
73
|
-
mainSectionItems,
|
|
74
|
-
footerSectionItems,
|
|
75
|
-
userManagement,
|
|
76
|
-
managementConsole,
|
|
77
|
-
profileFooterLinks,
|
|
78
|
-
}}"></apaas-auth-context>
|
|
79
|
-
</div>`
|
|
80
|
-
: nothing}
|
|
81
|
-
</cds-custom-popover-content>
|
|
82
|
-
</cds-custom-popover>
|
|
83
|
-
`;
|
|
84
|
-
}
|
|
85
|
-
};
|
|
86
|
-
AuthContext.styles = css `
|
|
87
|
-
${unsafeCSS([styles])}
|
|
88
|
-
`;
|
|
89
|
-
__decorate([
|
|
90
|
-
property({ type: Boolean })
|
|
91
|
-
], AuthContext.prototype, "profileOpen", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
property({ type: Object })
|
|
94
|
-
], AuthContext.prototype, "props", void 0);
|
|
95
|
-
AuthContext = __decorate([
|
|
96
|
-
customElement('apaas-profile-popover')
|
|
97
|
-
], AuthContext);
|
|
98
|
-
|
|
99
|
-
export { AuthContext };
|
|
100
|
-
//# sourceMappingURL=ProfilePopover.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProfilePopover.js","sources":["../../../../../../../components/global-header/src/components/ProfilePopover/ProfilePopover.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;;;;;AAOG;AACH;AAQA;;AAEG;AAEI,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,UAAU,CAAA;AAmBzC,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QAfoB,IAAA,CAAA,WAAW,GAAG,KAAK;AACpB,QAAA,IAAA,CAAA,KAAK,GAAuB;AACtD,YAAA,kBAAkB,EAAE,EAAE;AACtB,YAAA,iBAAiB,EAAE;AACjB,gBAAA,IAAI,EAAE,EAAE;AACR,gBAAA,IAAI,EAAE,EAAE;AACT,aAAA;AACD,YAAA,cAAc,EAAE;AACd,gBAAA,IAAI,EAAE,EAAE;AACR,gBAAA,IAAI,EAAE,EAAE;AACR,gBAAA,IAAI,EAAE,EAAE;AACT,aAAA;SACF;QAIC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC;IAC9D;AAEA,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,GAAG,CAAA;AACf,IAAA,EAAA,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AACtB,EAAA,CAFY;AAIgB,UAAA,CAAA;AAA5B,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AAAsB,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,aAAA,EAAA,MAAA,CAAA;AACrB,UAAA,CAAA;AAA3B,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAWxB,CAAA,EAAA,WAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AAjBS,WAAW,GAAA,UAAA,CAAA;IADvB,aAAa,CAAC,uBAAuB;AACzB,CAAA,EAAA,WAAW,CAgFvB;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_index.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,25 +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/search/index.js';
|
|
11
|
-
import { SearchConfigs } from '../../types/Header.types';
|
|
12
|
-
/**
|
|
13
|
-
* Optional search box for the header
|
|
14
|
-
*/
|
|
15
|
-
export declare class Search extends LitElement {
|
|
16
|
-
static styles: import("lit").CSSResult;
|
|
17
|
-
searchValue: string;
|
|
18
|
-
constructor();
|
|
19
|
-
connectedCallback(): void;
|
|
20
|
-
disconnectedCallback(): void;
|
|
21
|
-
_handleKeydown(e: KeyboardEvent): void;
|
|
22
|
-
_handleSearchInput(value: string): void;
|
|
23
|
-
props: SearchConfigs;
|
|
24
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
25
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { __decorate } from 'tslib';
|
|
2
|
-
import { unsafeCSS, css, LitElement, html } from 'lit';
|
|
3
|
-
import { state, property, customElement } from 'lit/decorators.js';
|
|
4
|
-
import '@carbon/web-components/es-custom/components/search/index.js';
|
|
5
|
-
import styles from './_index.scss.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
|
-
/**
|
|
17
|
-
* Optional search box for the header
|
|
18
|
-
*/
|
|
19
|
-
let Search = class Search extends LitElement {
|
|
20
|
-
constructor() {
|
|
21
|
-
super();
|
|
22
|
-
this.searchValue = '';
|
|
23
|
-
this.props = {
|
|
24
|
-
callback: (value) => console.log(`value: ${value}`),
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
connectedCallback() {
|
|
28
|
-
super.connectedCallback();
|
|
29
|
-
this.addEventListener('cds-search-input', ((e) => { var _a; return this._handleSearchInput((_a = e === null || e === void 0 ? void 0 : e.detail) === null || _a === void 0 ? void 0 : _a.value); }));
|
|
30
|
-
}
|
|
31
|
-
disconnectedCallback() {
|
|
32
|
-
this.removeEventListener('cds-search-input', () => { });
|
|
33
|
-
super.disconnectedCallback();
|
|
34
|
-
}
|
|
35
|
-
_handleKeydown(e) {
|
|
36
|
-
var _a;
|
|
37
|
-
e.stopPropagation();
|
|
38
|
-
if ((e.key === 'Enter' || e.code === 'Enter') &&
|
|
39
|
-
((_a = this.props) === null || _a === void 0 ? void 0 : _a.submitCallback)) {
|
|
40
|
-
this.props.submitCallback(this.searchValue);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
_handleSearchInput(value) {
|
|
44
|
-
this.searchValue = value;
|
|
45
|
-
this.props.callback(value);
|
|
46
|
-
}
|
|
47
|
-
render() {
|
|
48
|
-
var _a;
|
|
49
|
-
return html `<cds-custom-search
|
|
50
|
-
expandable
|
|
51
|
-
size="lg"
|
|
52
|
-
label-text="search"
|
|
53
|
-
close-button-label-text="close search"
|
|
54
|
-
@keydown="${this._handleKeydown}"
|
|
55
|
-
.placeholder="${(_a = this.props) === null || _a === void 0 ? void 0 : _a.placeholder}"></cds-custom-search>`;
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
Search.styles = css `
|
|
59
|
-
${unsafeCSS([styles])}
|
|
60
|
-
`;
|
|
61
|
-
__decorate([
|
|
62
|
-
state()
|
|
63
|
-
], Search.prototype, "searchValue", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
property({ type: Object })
|
|
66
|
-
], Search.prototype, "props", void 0);
|
|
67
|
-
Search = __decorate([
|
|
68
|
-
customElement('apaas-header-search')
|
|
69
|
-
], Search);
|
|
70
|
-
|
|
71
|
-
export { Search };
|
|
72
|
-
//# sourceMappingURL=Search.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Search.js","sources":["../../../../../../../components/global-header/src/components/Search/Search.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AAAA;;;;;;;AAOG;AACH;AASA;;AAEG;AAEI,IAAM,MAAM,GAAZ,MAAM,MAAO,SAAQ,UAAU,CAAA;AAQpC,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;QAHT,IAAA,CAAA,WAAW,GAAG,EAAE;AAgCY,QAAA,IAAA,CAAA,KAAK,GAAkB;AACjD,YAAA,QAAQ,EAAE,CAAC,KAAa,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA,OAAA,EAAU,KAAK,EAAE,CAAC;SAC5D;IA9BD;IAEA,iBAAiB,GAAA;QACf,KAAK,CAAC,iBAAiB,EAAE;AACzB,QAAA,IAAI,CAAC,gBAAgB,CAAC,kBAA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ACtB,EAAA,CAFY;AAKb,UAAA,CAAA;AADC,IAAA,KAAK;AACW,CAAA,EAAA,MAAA,CAAA,SAAA,EAAA,aAAA,EAAA,MAAA,CAAA;AAgCW,UAAA,CAAA;AAA3B,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAExB,CAAA,EAAA,MAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AAxCS,MAAM,GAAA,UAAA,CAAA;IADlB,aAAa,CAAC,qBAAqB;AACvB,CAAA,EAAA,MAAM,CAkDlB;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_index.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1,31 +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 { SideNavLink } from '../../types/Header.types';
|
|
11
|
-
/**
|
|
12
|
-
* Entries for the left-hand Apps menu
|
|
13
|
-
*/
|
|
14
|
-
export declare class SideNavItem extends LitElement {
|
|
15
|
-
static styles: import("lit").CSSResult;
|
|
16
|
-
private clickEventAnalytics;
|
|
17
|
-
private handleSideNavMenuItemClick;
|
|
18
|
-
private handleSideNavLinkClick;
|
|
19
|
-
private getIcon;
|
|
20
|
-
link: SideNavLink;
|
|
21
|
-
isCollapsible: boolean;
|
|
22
|
-
isActive: boolean;
|
|
23
|
-
handleNavItemClick: (e: Event) => void;
|
|
24
|
-
menuOpen: boolean;
|
|
25
|
-
isSideNavMenuItems: boolean;
|
|
26
|
-
isOnClickAvailable: boolean;
|
|
27
|
-
isHybridIpaas: boolean;
|
|
28
|
-
private _isHoveringOnSideNavItem;
|
|
29
|
-
private _setIsHoveringOnSideNavItem;
|
|
30
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
31
|
-
}
|