@carbon-labs/wc-global-header 0.6.0 → 0.8.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.
Files changed (48) hide show
  1. package/es/components/global-header/global-header.d.ts +4 -0
  2. package/es/components/global-header/global-header.js +4 -0
  3. package/es/components/global-header/global-header.js.map +1 -1
  4. package/es/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.js +234 -0
  5. package/es/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.js.map +1 -0
  6. package/es/components/global-header/src/components/LogoutHeader/LogoutHeader.js +58 -0
  7. package/es/components/global-header/src/components/LogoutHeader/LogoutHeader.js.map +1 -0
  8. package/es/components/global-header/src/components/LogoutHeader/_index.scss.js +6 -0
  9. package/es/components/global-header/src/components/LogoutHeader/_index.scss.js.map +1 -0
  10. package/es/components/global-header/src/components/LogoutTile/LogoutTile.js +72 -0
  11. package/es/components/global-header/src/components/LogoutTile/LogoutTile.js.map +1 -0
  12. package/es/components/global-header/src/components/LogoutTile/_index.scss.js +6 -0
  13. package/es/components/global-header/src/components/LogoutTile/_index.scss.js.map +1 -0
  14. package/es/components/global-header/src/constant.js +29 -1
  15. package/es/components/global-header/src/constant.js.map +1 -1
  16. package/es/components/global-header/src/global-header.template.js +1 -1
  17. package/es/components/global-header/src/index.scss.js +6 -0
  18. package/es/components/global-header/src/index.scss.js.map +1 -0
  19. package/es/index.d.ts +1 -1
  20. package/es/index.js +4 -0
  21. package/es/index.js.map +1 -1
  22. package/lib/components/global-header/global-header.d.ts +4 -0
  23. package/lib/components/global-header/global-header.js +21 -0
  24. package/lib/components/global-header/global-header.js.map +1 -1
  25. package/lib/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.js +234 -0
  26. package/lib/components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.js.map +1 -0
  27. package/lib/components/global-header/src/components/LogoutHeader/LogoutHeader.js +58 -0
  28. package/lib/components/global-header/src/components/LogoutHeader/LogoutHeader.js.map +1 -0
  29. package/lib/components/global-header/src/components/LogoutHeader/_index.scss.js +10 -0
  30. package/lib/components/global-header/src/components/LogoutHeader/_index.scss.js.map +1 -0
  31. package/lib/components/global-header/src/components/LogoutTile/LogoutTile.js +72 -0
  32. package/lib/components/global-header/src/components/LogoutTile/LogoutTile.js.map +1 -0
  33. package/lib/components/global-header/src/components/LogoutTile/_index.scss.js +10 -0
  34. package/lib/components/global-header/src/components/LogoutTile/_index.scss.js.map +1 -0
  35. package/lib/components/global-header/src/constant.js +29 -0
  36. package/lib/components/global-header/src/constant.js.map +1 -1
  37. package/lib/components/global-header/src/global-header.template.js +2 -2
  38. package/lib/components/global-header/src/global-header.template.js.map +1 -1
  39. package/lib/components/global-header/src/index.scss.js +10 -0
  40. package/lib/components/global-header/src/index.scss.js.map +1 -0
  41. package/lib/index.d.ts +1 -1
  42. package/lib/index.js +22 -0
  43. package/lib/index.js.map +1 -1
  44. package/package.json +3 -3
  45. package/es/components/global-header/src/global-header.scss.js +0 -6
  46. package/es/components/global-header/src/global-header.scss.js.map +0 -1
  47. package/lib/components/global-header/src/global-header.scss.js +0 -10
  48. package/lib/components/global-header/src/global-header.scss.js.map +0 -1
@@ -7,6 +7,10 @@
7
7
  * LICENSE file in the root directory of this source tree.
8
8
  */
9
9
  import globalHeader from './src/global-header.template.js';
10
+ export { CommonHeader } from './src/components/CommonHeader/CommonHeader.js';
11
+ export { HybridIpaasHeader } from './src/components/HybridIpaasHeader/HybridIpaasHeader.js';
12
+ export { LogoutHeader } from './src/components/LogoutHeader/LogoutHeader.js';
13
+ export { LogoutTile } from './src/components/LogoutTile/LogoutTile.js';
10
14
  /**
11
15
  * Top-level component implementing the global header
12
16
  */
@@ -2,6 +2,10 @@ import { __decorate } from 'tslib';
2
2
  import { customElement } from 'lit/decorators.js';
3
3
  import { settings } from '@carbon-labs/utilities/es/settings/index.js';
4
4
  import globalHeader from './src/global-header.template.js';
5
+ export { CommonHeader } from './src/components/CommonHeader/CommonHeader.js';
6
+ export { HybridIpaasHeader } from './src/components/HybridIpaasHeader/HybridIpaasHeader.js';
7
+ export { LogoutHeader } from './src/components/LogoutHeader/LogoutHeader.js';
8
+ export { LogoutTile } from './src/components/LogoutTile/LogoutTile.js';
5
9
 
6
10
  /**
7
11
  * @license
@@ -1 +1 @@
1
- {"version":3,"file":"global-header.js","sources":["../../../../components/global-header/global-header.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;AAAA;;;;;;;AAOG;AAMH,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,QAAQ;AAE9C;;AAEG;AAEH,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,YAAY,CAAA;CAAG;AAAzC,iBAAiB,GAAA,UAAA,CAAA;AADtB,IAAA,aAAa,CAAC,CAAA,EAAG,WAAW,CAAA,cAAA,CAAgB;AACvC,CAAA,EAAA,iBAAiB,CAAwB"}
1
+ {"version":3,"file":"global-header.js","sources":["../../../../components/global-header/global-header.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;AAOG;AAWH,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,QAAQ;AAE9C;;AAEG;AAEH,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,YAAY,CAAA;CAAG;AAAzC,iBAAiB,GAAA,UAAA,CAAA;AADtB,IAAA,aAAa,CAAC,CAAA,EAAG,WAAW,CAAA,cAAA,CAAgB;AACvC,CAAA,EAAA,iBAAiB,CAAwB"}
@@ -0,0 +1,234 @@
1
+ import { __decorate } from 'tslib';
2
+ import { 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
+
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
+ /**
19
+ * Wrapper component that obtains header options from a backend route
20
+ */
21
+ let HybridIpaasHeader = class HybridIpaasHeader extends LitElement {
22
+ constructor() {
23
+ super(...arguments);
24
+ this.productName = null;
25
+ this.productKey = '';
26
+ this.fetchHeaders = {};
27
+ this.basePath = '';
28
+ this.displayName = '';
29
+ this.userEmail = '';
30
+ this.productVersion = null;
31
+ this.assistMeKey = '';
32
+ this.aiCallbackEvent = '';
33
+ this.hasNewNotifications = false;
34
+ this.searchConfigs = null;
35
+ this.capabilityProfileFooterLinks = [];
36
+ this.capabilityGlobalActions = [];
37
+ this.headerOptions = { ...INITIAL_AUTOMATION_HEADER_PROPS };
38
+ }
39
+ firstUpdated() {
40
+ if (!this.productKey) {
41
+ console.error('A product key is required for the environment switcher to function.');
42
+ }
43
+ this.initializeHeaderOptions();
44
+ }
45
+ async initializeHeaderOptions() {
46
+ try {
47
+ const serverOptions = await this.loadIpaasHeaderOptionsFromServer(this.fetchHeaders, this.basePath, this.productKey);
48
+ this.headerOptions = this.buildHeaderOptions(serverOptions);
49
+ }
50
+ catch (error) {
51
+ console.error('Failed to load header options:', error);
52
+ }
53
+ }
54
+ async loadIpaasHeaderOptionsFromServer(headers, basePath, productKey) {
55
+ headers = headers || {};
56
+ headers['x-hybrid-ipaas-product-key'] = productKey;
57
+ const fetchRoute = basePath
58
+ ? basePath + '/hybrid-ipaas/v1/header/options'
59
+ : '/hybrid-ipaas/v1/header/options';
60
+ const response = await fetch(fetchRoute, {
61
+ credentials: 'same-origin',
62
+ headers,
63
+ });
64
+ if (!response.ok) {
65
+ throw new Error(`Failed to fetch header options: ${response.statusText}`);
66
+ }
67
+ return response.json();
68
+ }
69
+ initLogoutLink() {
70
+ const footerLink = {
71
+ text: 'Logout',
72
+ carbonIcon: 'Logout',
73
+ arialLabel: 'Logout',
74
+ };
75
+ if (this.logoutCallback) {
76
+ footerLink.onClickHandler = this.logoutCallback;
77
+ }
78
+ else {
79
+ footerLink.href = `${this.basePath}/logout`;
80
+ }
81
+ return footerLink;
82
+ }
83
+ buildHeaderOptions(baseOptions) {
84
+ var _a, _b, _c, _d, _e, _f, _g, _h;
85
+ const overrideProfile = {
86
+ email: this.userEmail,
87
+ displayName: this.displayName,
88
+ };
89
+ const mainSectionItems = [];
90
+ if (this.productName) {
91
+ mainSectionItems.push({ label: 'Product', text: this.productName });
92
+ }
93
+ if (this.productVersion) {
94
+ mainSectionItems.push({ label: 'Version', text: this.productVersion });
95
+ }
96
+ if (baseOptions.mainSectionItems &&
97
+ baseOptions.mainSectionItems.length > 0) {
98
+ baseOptions.mainSectionItems.forEach((item) => {
99
+ mainSectionItems.push(item);
100
+ });
101
+ } // This is unlikely to be needed but keeping in case anything is passed back in mainSectionItems
102
+ const overrideCapabilityName = {
103
+ label: this.productName ? this.productName : '',
104
+ };
105
+ const logoutIndex = (_a = baseOptions.profileFooterLinks) === null || _a === void 0 ? void 0 : _a.findIndex((link) => link.text.toLowerCase() === 'logout');
106
+ if (logoutIndex !== undefined && logoutIndex > -1) {
107
+ (_b = baseOptions.profileFooterLinks) === null || _b === void 0 ? void 0 : _b.splice(logoutIndex, 1, this.initLogoutLink());
108
+ }
109
+ else {
110
+ (_c = baseOptions.profileFooterLinks) === null || _c === void 0 ? void 0 : _c.push(this.initLogoutLink());
111
+ } // override the 'logout' object if it comes from the service to avoid duplicate
112
+ // The assumption is that input props take priority over values provided by the service
113
+ const updatedOptions = {
114
+ ...baseOptions,
115
+ capabilityName: this.productName === null
116
+ ? baseOptions.capabilityName
117
+ : overrideCapabilityName,
118
+ profile: this.userEmail === '' || this.displayName === ''
119
+ ? baseOptions.profile
120
+ : overrideProfile,
121
+ mainSectionItems: mainSectionItems,
122
+ };
123
+ // Add assistMeConfigs if assistMeKey exists
124
+ if (this.assistMeKey) {
125
+ updatedOptions.assistMeConfigs = {
126
+ productId: this.assistMeKey,
127
+ };
128
+ }
129
+ if (this.notificationOpenCallback) {
130
+ updatedOptions.notificationConfigs = {
131
+ onClick: this.notificationOpenCallback,
132
+ };
133
+ }
134
+ if (this.searchConfigs) {
135
+ updatedOptions.searchConfigs = {
136
+ placeholder: (_e = (_d = this.searchConfigs) === null || _d === void 0 ? void 0 : _d.placeholder) !== null && _e !== void 0 ? _e : 'Search',
137
+ callback: (_f = this.searchConfigs) === null || _f === void 0 ? void 0 : _f.callback,
138
+ submitCallback: (_g = this.searchConfigs) === null || _g === void 0 ? void 0 : _g.submitCallback,
139
+ };
140
+ }
141
+ if (this.aiCallback) {
142
+ updatedOptions.chatBotConfigs = {
143
+ onClick: this.aiCallback,
144
+ };
145
+ }
146
+ if (this.aiCallbackEvent) {
147
+ updatedOptions.chatBotConfigs = {
148
+ onClick: () => {
149
+ const event = new CustomEvent(this.aiCallbackEvent, {
150
+ bubbles: true,
151
+ cancelable: true,
152
+ });
153
+ this.dispatchEvent(event);
154
+ },
155
+ };
156
+ }
157
+ if (this.capabilityProfileFooterLinks &&
158
+ this.capabilityProfileFooterLinks.length > 0) {
159
+ updatedOptions.profileFooterLinks = [
160
+ ...this.capabilityProfileFooterLinks,
161
+ ...((_h = updatedOptions.profileFooterLinks) !== null && _h !== void 0 ? _h : []),
162
+ ];
163
+ }
164
+ if (this.capabilityGlobalActions &&
165
+ this.capabilityGlobalActions.length > 0) {
166
+ updatedOptions.globalActionConfigs = [...this.capabilityGlobalActions];
167
+ }
168
+ return updatedOptions;
169
+ }
170
+ render() {
171
+ return html `<div id="ipaas-header-container">
172
+ <clabs-global-header-apaas
173
+ ?hasNewNotifications="${this.hasNewNotifications}"
174
+ .headerProps="${this.headerOptions}"></clabs-global-header-apaas>
175
+ </div>`;
176
+ }
177
+ };
178
+ __decorate([
179
+ property({ type: String })
180
+ ], HybridIpaasHeader.prototype, "productName", void 0);
181
+ __decorate([
182
+ property({ type: String })
183
+ ], HybridIpaasHeader.prototype, "productKey", void 0);
184
+ __decorate([
185
+ property({ type: Object })
186
+ ], HybridIpaasHeader.prototype, "fetchHeaders", void 0);
187
+ __decorate([
188
+ property({ type: String })
189
+ ], HybridIpaasHeader.prototype, "basePath", void 0);
190
+ __decorate([
191
+ property({ type: String })
192
+ ], HybridIpaasHeader.prototype, "displayName", void 0);
193
+ __decorate([
194
+ property({ type: String })
195
+ ], HybridIpaasHeader.prototype, "userEmail", void 0);
196
+ __decorate([
197
+ property({ type: String })
198
+ ], HybridIpaasHeader.prototype, "productVersion", void 0);
199
+ __decorate([
200
+ property({ type: String })
201
+ ], HybridIpaasHeader.prototype, "assistMeKey", void 0);
202
+ __decorate([
203
+ property({ type: Function })
204
+ ], HybridIpaasHeader.prototype, "aiCallback", void 0);
205
+ __decorate([
206
+ property({ type: String })
207
+ ], HybridIpaasHeader.prototype, "aiCallbackEvent", void 0);
208
+ __decorate([
209
+ property({ type: Function })
210
+ ], HybridIpaasHeader.prototype, "logoutCallback", void 0);
211
+ __decorate([
212
+ property({ type: Function })
213
+ ], HybridIpaasHeader.prototype, "notificationOpenCallback", void 0);
214
+ __decorate([
215
+ property({ type: Boolean })
216
+ ], HybridIpaasHeader.prototype, "hasNewNotifications", void 0);
217
+ __decorate([
218
+ property({ type: Object })
219
+ ], HybridIpaasHeader.prototype, "searchConfigs", void 0);
220
+ __decorate([
221
+ property({ type: Array })
222
+ ], HybridIpaasHeader.prototype, "capabilityProfileFooterLinks", void 0);
223
+ __decorate([
224
+ property({ type: Array })
225
+ ], HybridIpaasHeader.prototype, "capabilityGlobalActions", void 0);
226
+ __decorate([
227
+ state()
228
+ ], HybridIpaasHeader.prototype, "headerOptions", void 0);
229
+ HybridIpaasHeader = __decorate([
230
+ customElement(`${clabsPrefix}-global-header-hybrid-ipaas`)
231
+ ], HybridIpaasHeader);
232
+
233
+ export { HybridIpaasHeader };
234
+ //# sourceMappingURL=HybridIpaasHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HybridIpaasHeader.js","sources":["../../../../../../../components/global-header/src/components/HybridIpaasHeader/HybridIpaasHeader.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AACH;AAcA,MAAM,EAAE,YAAY,EAAE,WAAW,EAAE,GAAG,QAAQ;AAE9C;;AAEG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,UAAU,CAAA;AAA1C,IAAA,WAAA,GAAA;;QACuB,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;AACF,YAAA,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,gCAAgC,CAC/D,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,QAAQ,EACb,IAAI,CAAC,UAAU,CAChB;YAED,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC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A,gBAAA,EAAA,MAAA,CAAA;AACzC,UAAA,CAAA;AAA7B,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE;AAEd,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,0BAAA,EAAA,MAAA,CAAA;AACe,UAAA,CAAA;AAA5B,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE;AAA8B,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,qBAAA,EAAA,MAAA,CAAA;AAC7B,UAAA,CAAA;AAA3B,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAA6C,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,eAAA,EAAA,MAAA,CAAA;AAEvE,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE;AAC+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;AArBzD,iBAAiB,GAAA,UAAA,CAAA;AAD7B,IAAA,aAAa,CAAC,CAAA,EAAG,WAAW,CAAA,2BAAA,CAA6B;AAC7C,CAAA,EAAA,iBAAiB,CAyM7B;;;;"}
@@ -0,0 +1,58 @@
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
@@ -0,0 +1 @@
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;;;;"}
@@ -0,0 +1,6 @@
1
+ import { css } from 'lit';
2
+
3
+ var styles = css([".automation-global-header__logout-header{padding-block:1rem}"]);
4
+
5
+ export { styles as default };
6
+ //# sourceMappingURL=_index.scss.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_index.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -0,0 +1,72 @@
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
@@ -0,0 +1 @@
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,UAA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".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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_index.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -19,6 +19,34 @@ const NOTIFICATIONS_BUTTON_ID = `${AUTOMATION_NAMESPACE_PREFIX}-notifications-bu
19
19
  const PROFILE_MENU_BUTTON_ID = `${AUTOMATION_NAMESPACE_PREFIX}-profile-menu-button`;
20
20
  const SEARCH_BUTTON_ID = `${AUTOMATION_NAMESPACE_PREFIX}-search-button`;
21
21
  const TRIAL_POPOVER_BUTTON_ID = `${AUTOMATION_NAMESPACE_PREFIX}-trial-popover-button`;
22
+ const INITIAL_AUTOMATION_HEADER_PROPS = {
23
+ brand: {
24
+ company: '',
25
+ product: '',
26
+ },
27
+ enableLogs: false,
28
+ managementConsole: {
29
+ href: '',
30
+ text: 'Console',
31
+ },
32
+ noAuthHeaderLinks: [],
33
+ profileFooterLinks: [],
34
+ footerSectionItems: [
35
+ {
36
+ href: '',
37
+ text: 'Service IDs and API keys',
38
+ arialLabel: 'APIKeys',
39
+ carbonIcon: 'IbmCloudKeyProtect',
40
+ },
41
+ ],
42
+ userManagement: {
43
+ href: '',
44
+ text: 'User management',
45
+ icon: 'UserFollow',
46
+ },
47
+ switcherConfigs: [],
48
+ environment: 'staging',
49
+ };
22
50
  const DEFAULT_NO_AUTH_HEADER_LINKS = [
23
51
  {
24
52
  text: 'Docs',
@@ -34,5 +62,5 @@ const DEFAULT_NO_AUTH_HEADER_LINKS = [
34
62
  },
35
63
  ];
36
64
 
37
- export { APP_SWITCHER_BUTTON_ID, AUTOMATION_HEADER_BASE_CLASS, AUTOMATION_NAMESPACE_PREFIX, DEFAULT_NO_AUTH_HEADER_LINKS, ENV_SWITCHER_BUTTON_ID, HEADER_NAVIGATION_ACTION, HELP_MENU_BUTTON_ID, INTEGRATION_AGENT_BUTTON_ID, NAMESPACE, NOTIFICATIONS_BUTTON_ID, POPOVER_LABEL_ID, PROFILE_MENU_BUTTON_ID, SEARCH_BUTTON_ID, TRIAL_POPOVER_BUTTON_ID };
65
+ export { APP_SWITCHER_BUTTON_ID, AUTOMATION_HEADER_BASE_CLASS, AUTOMATION_NAMESPACE_PREFIX, DEFAULT_NO_AUTH_HEADER_LINKS, ENV_SWITCHER_BUTTON_ID, HEADER_NAVIGATION_ACTION, HELP_MENU_BUTTON_ID, INITIAL_AUTOMATION_HEADER_PROPS, INTEGRATION_AGENT_BUTTON_ID, NAMESPACE, NOTIFICATIONS_BUTTON_ID, POPOVER_LABEL_ID, PROFILE_MENU_BUTTON_ID, SEARCH_BUTTON_ID, TRIAL_POPOVER_BUTTON_ID };
38
66
  //# sourceMappingURL=constant.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constant.js","sources":["../../../../../components/global-header/src/constant.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;AAOG;AAEI,MAAM,2BAA2B,GAAG;AACpC,MAAM,4BAA4B,GAAG;AAErC,MAAM,SAAS,GAAG;AAClB,MAAM,wBAAwB,GAAG;AACjC,MAAM,gBAAgB,GAAG;AAEzB,MAAM,sBAAsB,GAAG,CAAA,EAAG,2BAA2B;AAC7D,MAAM,sBAAsB,GAAG,CAAA,EAAG,2BAA2B;AAC7D,MAAM,mBAAmB,GAAG,CAAA,EAAG,2BAA2B;AAC1D,MAAM,2BAA2B,GAAG,CAAA,EAAG,2BAA2B;AAClE,MAAM,uBAAuB,GAAG,CAAA,EAAG,2BAA2B;AAC9D,MAAM,sBAAsB,GAAG,CAAA,EAAG,2BAA2B;AAC7D,MAAM,gBAAgB,GAAG,CAAA,EAAG,2BAA2B;AACvD,MAAM,uBAAuB,GAAG,CAAA,EAAG,2BAA2B;AA8B9D,MAAM,4BAA4B,GAAG;AAC1C,IAAA;AACE,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,UAAU,EAAE,UAAU;AACtB,QAAA,UAAU,EAAE,MAAM;AACnB,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,UAAU,EAAE,OAAO;AACnB,QAAA,UAAU,EAAE,QAAQ;AACrB,KAAA;;;;;"}
1
+ {"version":3,"file":"constant.js","sources":["../../../../../components/global-header/src/constant.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAA;;;;;;;AAOG;AAEI,MAAM,2BAA2B,GAAG;AACpC,MAAM,4BAA4B,GAAG;AAErC,MAAM,SAAS,GAAG;AAClB,MAAM,wBAAwB,GAAG;AACjC,MAAM,gBAAgB,GAAG;AAEzB,MAAM,sBAAsB,GAAG,CAAA,EAAG,2BAA2B;AAC7D,MAAM,sBAAsB,GAAG,CAAA,EAAG,2BAA2B;AAC7D,MAAM,mBAAmB,GAAG,CAAA,EAAG,2BAA2B;AAC1D,MAAM,2BAA2B,GAAG,CAAA,EAAG,2BAA2B;AAClE,MAAM,uBAAuB,GAAG,CAAA,EAAG,2BAA2B;AAC9D,MAAM,sBAAsB,GAAG,CAAA,EAAG,2BAA2B;AAC7D,MAAM,gBAAgB,GAAG,CAAA,EAAG,2BAA2B;AACvD,MAAM,uBAAuB,GAAG,CAAA,EAAG,2BAA2B;AAE9D,MAAM,+BAA+B,GAAG;AAC7C,IAAA,KAAK,EAAE;AACL,QAAA,OAAO,EAAE,EAAE;AACX,QAAA,OAAO,EAAE,EAAE;AACZ,KAAA;AACD,IAAA,UAAU,EAAE,KAAK;AACjB,IAAA,iBAAiB,EAAE;AACjB,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,IAAI,EAAE,SAAS;AAChB,KAAA;AACD,IAAA,iBAAiB,EAAE,EAAE;AACrB,IAAA,kBAAkB,EAAE,EAAE;AACtB,IAAA,kBAAkB,EAAE;AAClB,QAAA;AACE,YAAA,IAAI,EAAE,EAAE;AACR,YAAA,IAAI,EAAE,0BAA0B;AAChC,YAAA,UAAU,EAAE,SAAS;AACrB,YAAA,UAAU,EAAE,oBAAoB;AACjC,SAAA;AACF,KAAA;AACD,IAAA,cAAc,EAAE;AACd,QAAA,IAAI,EAAE,EAAE;AACR,QAAA,IAAI,EAAE,iBAAiB;AACvB,QAAA,IAAI,EAAE,YAAY;AACnB,KAAA;AACD,IAAA,eAAe,EAAE,EAAE;AACnB,IAAA,WAAW,EAAE,SAAS;;AAEjB,MAAM,4BAA4B,GAAG;AAC1C,IAAA;AACE,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,IAAI,EAAE,OAAO;AACb,QAAA,UAAU,EAAE,UAAU;AACtB,QAAA,UAAU,EAAE,MAAM;AACnB,KAAA;AACD,IAAA;AACE,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,UAAU,EAAE,OAAO;AACnB,QAAA,UAAU,EAAE,QAAQ;AACrB,KAAA;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { CommonHeader } from './components/CommonHeader/CommonHeader.js';
2
- import styles from './global-header.scss.js';
2
+ import styles from './index.scss.js';
3
3
 
4
4
  /**
5
5
  * @license