@carbon-labs/wc-global-header 0.100.0 → 0.101.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.
|
@@ -39,7 +39,7 @@ const co = (t) => new Ys(typeof t == "string" ? t : t + "", void 0, qe), K = (t,
|
|
|
39
39
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
40
40
|
})(c) + t[r + 1], t[0]);
|
|
41
41
|
return new Ys(e, t, qe);
|
|
42
|
-
},
|
|
42
|
+
}, Ic = (t, o) => {
|
|
43
43
|
if (je) t.adoptedStyleSheets = o.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
|
44
44
|
else for (const e of o) {
|
|
45
45
|
const s = document.createElement("style"), c = Qt.litNonce;
|
|
@@ -55,7 +55,7 @@ const co = (t) => new Ys(typeof t == "string" ? t : t + "", void 0, qe), K = (t,
|
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
57
|
*/
|
|
58
|
-
const { is:
|
|
58
|
+
const { is: Pc, defineProperty: Oc, getOwnPropertyDescriptor: Tc, getOwnPropertyNames: Mc, getOwnPropertySymbols: Nc, getPrototypeOf: Lc } = Object, Io = globalThis, is = Io.trustedTypes, Bc = is ? is.emptyScript : "", fe = Io.reactiveElementPolyfillSupport, Nt = (t, o) => t, oe = { toAttribute(t, o) {
|
|
59
59
|
switch (o) {
|
|
60
60
|
case Boolean:
|
|
61
61
|
t = t ? Bc : null;
|
|
@@ -83,8 +83,8 @@ const { is: Ic, defineProperty: Oc, getOwnPropertyDescriptor: Tc, getOwnProperty
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
return e;
|
|
86
|
-
} }, Ue = (t, o) => !
|
|
87
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
86
|
+
} }, Ue = (t, o) => !Pc(t, o), as = { attribute: !0, type: String, converter: oe, reflect: !1, useDefault: !1, hasChanged: Ue };
|
|
87
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Io.litPropertyMetadata ?? (Io.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
88
88
|
let mt = class extends HTMLElement {
|
|
89
89
|
static addInitializer(o) {
|
|
90
90
|
this._$Ei(), (this.l ?? (this.l = [])).push(o);
|
|
@@ -169,7 +169,7 @@ let mt = class extends HTMLElement {
|
|
|
169
169
|
}
|
|
170
170
|
createRenderRoot() {
|
|
171
171
|
const o = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
172
|
-
return
|
|
172
|
+
return Ic(o, this.constructor.elementStyles), o;
|
|
173
173
|
}
|
|
174
174
|
connectedCallback() {
|
|
175
175
|
var o;
|
|
@@ -288,7 +288,7 @@ let mt = class extends HTMLElement {
|
|
|
288
288
|
firstUpdated(o) {
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
|
-
mt.elementStyles = [], mt.shadowRootOptions = { mode: "open" }, mt[Nt("elementProperties")] = /* @__PURE__ */ new Map(), mt[Nt("finalized")] = /* @__PURE__ */ new Map(), fe == null || fe({ ReactiveElement: mt }), (
|
|
291
|
+
mt.elementStyles = [], mt.shadowRootOptions = { mode: "open" }, mt[Nt("elementProperties")] = /* @__PURE__ */ new Map(), mt[Nt("finalized")] = /* @__PURE__ */ new Map(), fe == null || fe({ ReactiveElement: mt }), (Io.reactiveElementVersions ?? (Io.reactiveElementVersions = [])).push("2.1.2");
|
|
292
292
|
/**
|
|
293
293
|
* @license
|
|
294
294
|
* Copyright 2017 Google LLC
|
|
@@ -340,7 +340,7 @@ const Fc = (t, o, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorat
|
|
|
340
340
|
* Copyright 2017 Google LLC
|
|
341
341
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
342
342
|
*/
|
|
343
|
-
function
|
|
343
|
+
function It(t, o) {
|
|
344
344
|
return (e, s, c) => {
|
|
345
345
|
const r = (n) => {
|
|
346
346
|
var i;
|
|
@@ -884,7 +884,7 @@ let M = (qo = class extends Xt(fo(y)) {
|
|
|
884
884
|
(e = super.updated) == null || e.call(this, o), this._checkBadgeWarning();
|
|
885
885
|
}
|
|
886
886
|
render() {
|
|
887
|
-
const { autofocus: o, buttonClassName: e, dangerDescription: s, disabled: c, download: r, href: n, hreflang: i, kind: a, isExpressive: l, isSelected: u, linkRole: v, openTooltip: g, ping: h, rel: b, size: _, tabIndex: w, target: z, tooltipAlignment:
|
|
887
|
+
const { autofocus: o, buttonClassName: e, dangerDescription: s, disabled: c, download: r, href: n, hreflang: i, kind: a, isExpressive: l, isSelected: u, linkRole: v, openTooltip: g, ping: h, rel: b, size: _, tabIndex: w, target: z, tooltipAlignment: I, tooltipPosition: S, tooltipText: P, type: A, _hasIcon: C, hasMainContent: B, _handleSlotChange: x } = this;
|
|
888
888
|
let L = {
|
|
889
889
|
"cds-custom--btn": !0,
|
|
890
890
|
[`cds-custom--btn--${a}`]: a,
|
|
@@ -933,16 +933,16 @@ let M = (qo = class extends Xt(fo(y)) {
|
|
|
933
933
|
</a>
|
|
934
934
|
${m`<slot id="badge-indicator" name="badge-indicator"></slot>` ?? !c}
|
|
935
935
|
`;
|
|
936
|
-
const R =
|
|
936
|
+
const R = I && (S === "top" || S === "bottom") ? `-${I}` : "", j = Y({
|
|
937
937
|
"cds-custom--popover-container": !0,
|
|
938
938
|
"cds-custom--popover--caret": !0,
|
|
939
939
|
"cds-custom--popover--high-contrast": !0,
|
|
940
940
|
"cds-custom--tooltip": !0,
|
|
941
941
|
"cds-custom--icon-tooltip": C,
|
|
942
942
|
"cds-custom--popover--open": g,
|
|
943
|
-
[`cds-custom--popover--${S}${R}`]:
|
|
943
|
+
[`cds-custom--popover--${S}${R}`]: P
|
|
944
944
|
});
|
|
945
|
-
return
|
|
945
|
+
return P && !c ? m`
|
|
946
946
|
<span class="${j}">
|
|
947
947
|
<button
|
|
948
948
|
id="button"
|
|
@@ -952,7 +952,7 @@ let M = (qo = class extends Xt(fo(y)) {
|
|
|
952
952
|
?disabled="${c}"
|
|
953
953
|
tabindex="${w}"
|
|
954
954
|
type="${T(A)}"
|
|
955
|
-
aria-label="${T(
|
|
955
|
+
aria-label="${T(P)}"
|
|
956
956
|
aria-describedby="badge-indicator">
|
|
957
957
|
<slot @slotchange="${x}"></slot>
|
|
958
958
|
<slot name="icon" @slotchange="${x}"></slot>
|
|
@@ -960,7 +960,7 @@ let M = (qo = class extends Xt(fo(y)) {
|
|
|
960
960
|
<span class="${"cds-custom"}--popover">
|
|
961
961
|
<span
|
|
962
962
|
class="${"cds-custom"}--popover-content ${"cds-custom"}--tooltip-content">
|
|
963
|
-
${
|
|
963
|
+
${P}
|
|
964
964
|
</span>
|
|
965
965
|
<span class="${"cds-custom"}--popover-caret"></span>
|
|
966
966
|
</span>
|
|
@@ -975,7 +975,7 @@ let M = (qo = class extends Xt(fo(y)) {
|
|
|
975
975
|
?disabled="${c}"
|
|
976
976
|
tabindex="${w}"
|
|
977
977
|
type="${T(A)}"
|
|
978
|
-
aria-label="${T(
|
|
978
|
+
aria-label="${T(P)}"
|
|
979
979
|
aria-describedby="${T(U ? "danger-description" : void 0)}">
|
|
980
980
|
${U ? m`<span
|
|
981
981
|
id="danger-description"
|
|
@@ -1158,7 +1158,7 @@ let ho = (Uo = class extends sc {
|
|
|
1158
1158
|
...y.shadowRootOptions,
|
|
1159
1159
|
delegatesFocus: !0
|
|
1160
1160
|
}, Uo.styles = lo, Uo);
|
|
1161
|
-
p([
|
|
1161
|
+
p([It("button")], ho.prototype, "_buttonNode", void 0);
|
|
1162
1162
|
p([d({
|
|
1163
1163
|
type: Boolean,
|
|
1164
1164
|
reflect: !0
|
|
@@ -1180,7 +1180,7 @@ const no = (t, o, e) => Array.prototype.forEach.call(t, o, e);
|
|
|
1180
1180
|
* Copyright 2017 Google LLC
|
|
1181
1181
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1182
1182
|
*/
|
|
1183
|
-
class
|
|
1183
|
+
class Ie extends Ze {
|
|
1184
1184
|
constructor(o) {
|
|
1185
1185
|
if (super(o), this.it = f, o.type !== ue.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
|
1186
1186
|
}
|
|
@@ -1194,16 +1194,16 @@ class Pe extends Ze {
|
|
|
1194
1194
|
return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
|
1195
1195
|
}
|
|
1196
1196
|
}
|
|
1197
|
-
|
|
1197
|
+
Ie.directiveName = "unsafeHTML", Ie.resultType = 1;
|
|
1198
1198
|
/**
|
|
1199
1199
|
* @license
|
|
1200
1200
|
* Copyright 2017 Google LLC
|
|
1201
1201
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1202
1202
|
*/
|
|
1203
|
-
class
|
|
1203
|
+
class Pe extends Ie {
|
|
1204
1204
|
}
|
|
1205
|
-
|
|
1206
|
-
const tr = Xe(
|
|
1205
|
+
Pe.directiveName = "unsafeSVG", Pe.resultType = 2;
|
|
1206
|
+
const tr = Xe(Pe);
|
|
1207
1207
|
function fs(t, o) {
|
|
1208
1208
|
var e = Object.keys(t);
|
|
1209
1209
|
if (Object.getOwnPropertySymbols) {
|
|
@@ -1407,7 +1407,7 @@ let xo = (Wo = class extends Xt(fo(y)) {
|
|
|
1407
1407
|
...y.shadowRootOptions,
|
|
1408
1408
|
delegatesFocus: !0
|
|
1409
1409
|
}, Wo.styles = lo, Wo);
|
|
1410
|
-
p([
|
|
1410
|
+
p([It('[part="trigger"]')], xo.prototype, "_topMenuItem", void 0);
|
|
1411
1411
|
p([q("keydown")], xo.prototype, "_handleKeydownTrigger", null);
|
|
1412
1412
|
p([q("focusout")], xo.prototype, "_handleBlur", null);
|
|
1413
1413
|
p([d({
|
|
@@ -1870,7 +1870,7 @@ let ko = (Go = class extends fo(y) {
|
|
|
1870
1870
|
...y.shadowRootOptions,
|
|
1871
1871
|
delegatesFocus: !0
|
|
1872
1872
|
}, Go.styles = it, Go);
|
|
1873
|
-
p([
|
|
1873
|
+
p([It("#title-icon-container")], ko.prototype, "_titleIconContainerNode", void 0);
|
|
1874
1874
|
p([d({
|
|
1875
1875
|
type: Boolean,
|
|
1876
1876
|
reflect: !0
|
|
@@ -1899,8 +1899,8 @@ var br = {
|
|
|
1899
1899
|
}],
|
|
1900
1900
|
name: "chevron--down",
|
|
1901
1901
|
size: 20
|
|
1902
|
-
},
|
|
1903
|
-
let Mo = (
|
|
1902
|
+
}, Po;
|
|
1903
|
+
let Mo = (Po = class extends fo(y) {
|
|
1904
1904
|
constructor(...o) {
|
|
1905
1905
|
super(...o), this._hasIcon = !1, this.active = !1, this.expanded = !1, this.large = !1, this.forceCollapsed = !1, this.title = "";
|
|
1906
1906
|
}
|
|
@@ -2006,11 +2006,11 @@ let Mo = (Io = class extends fo(y) {
|
|
|
2006
2006
|
static get eventToggle() {
|
|
2007
2007
|
return "cds-custom-side-nav-menu-toggled";
|
|
2008
2008
|
}
|
|
2009
|
-
},
|
|
2009
|
+
}, Po.attribItemHasIcon = "parent-has-icon", Po.shadowRootOptions = {
|
|
2010
2010
|
...y.shadowRootOptions,
|
|
2011
2011
|
delegatesFocus: !0
|
|
2012
|
-
},
|
|
2013
|
-
p([
|
|
2012
|
+
}, Po.styles = it, Po);
|
|
2013
|
+
p([It("#title-icon-container")], Mo.prototype, "_titleIconContainerNode", void 0);
|
|
2014
2014
|
p([d({
|
|
2015
2015
|
type: Boolean,
|
|
2016
2016
|
reflect: !0
|
|
@@ -2168,7 +2168,7 @@ const gr = ["top", "right", "bottom", "left"], No = Math.min, Q = Math.max, ce =
|
|
|
2168
2168
|
function yr(t, o, e) {
|
|
2169
2169
|
return Q(t, No(o, e));
|
|
2170
2170
|
}
|
|
2171
|
-
function
|
|
2171
|
+
function Pt(t, o) {
|
|
2172
2172
|
return typeof t == "function" ? t(o) : t;
|
|
2173
2173
|
}
|
|
2174
2174
|
function rt(t) {
|
|
@@ -2324,17 +2324,17 @@ async function Ar(t, o) {
|
|
|
2324
2324
|
elementContext: v = "floating",
|
|
2325
2325
|
altBoundary: g = !1,
|
|
2326
2326
|
padding: h = 0
|
|
2327
|
-
} =
|
|
2327
|
+
} = Pt(o, t), b = ac(h), w = i[g ? v === "floating" ? "reference" : "floating" : v], z = ne(await r.getClippingRect({
|
|
2328
2328
|
element: (e = await (r.isElement == null ? void 0 : r.isElement(w))) == null || e ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(i.floating)),
|
|
2329
2329
|
boundary: l,
|
|
2330
2330
|
rootBoundary: u,
|
|
2331
2331
|
strategy: a
|
|
2332
|
-
})),
|
|
2332
|
+
})), I = v === "floating" ? {
|
|
2333
2333
|
x: s,
|
|
2334
2334
|
y: c,
|
|
2335
2335
|
width: n.floating.width,
|
|
2336
2336
|
height: n.floating.height
|
|
2337
|
-
} : n.reference, S = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(i.floating)),
|
|
2337
|
+
} : n.reference, S = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(i.floating)), P = await (r.isElement == null ? void 0 : r.isElement(S)) ? await (r.getScale == null ? void 0 : r.getScale(S)) || {
|
|
2338
2338
|
x: 1,
|
|
2339
2339
|
y: 1
|
|
2340
2340
|
} : {
|
|
@@ -2342,18 +2342,18 @@ async function Ar(t, o) {
|
|
|
2342
2342
|
y: 1
|
|
2343
2343
|
}, A = ne(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
2344
2344
|
elements: i,
|
|
2345
|
-
rect:
|
|
2345
|
+
rect: I,
|
|
2346
2346
|
offsetParent: S,
|
|
2347
2347
|
strategy: a
|
|
2348
|
-
}) :
|
|
2348
|
+
}) : I);
|
|
2349
2349
|
return {
|
|
2350
|
-
top: (z.top - A.top + b.top) /
|
|
2351
|
-
bottom: (A.bottom - z.bottom + b.bottom) /
|
|
2352
|
-
left: (z.left - A.left + b.left) /
|
|
2353
|
-
right: (A.right - z.right + b.right) /
|
|
2350
|
+
top: (z.top - A.top + b.top) / P.y,
|
|
2351
|
+
bottom: (A.bottom - z.bottom + b.bottom) / P.y,
|
|
2352
|
+
left: (z.left - A.left + b.left) / P.x,
|
|
2353
|
+
right: (A.right - z.right + b.right) / P.x
|
|
2354
2354
|
};
|
|
2355
2355
|
}
|
|
2356
|
-
const Er = 50,
|
|
2356
|
+
const Er = 50, Ir = async (t, o, e) => {
|
|
2357
2357
|
const {
|
|
2358
2358
|
placement: s = "bottom",
|
|
2359
2359
|
strategy: c = "absolute",
|
|
@@ -2378,13 +2378,13 @@ const Er = 50, Pr = async (t, o, e) => {
|
|
|
2378
2378
|
continue;
|
|
2379
2379
|
const {
|
|
2380
2380
|
name: z,
|
|
2381
|
-
fn:
|
|
2381
|
+
fn: I
|
|
2382
2382
|
} = w, {
|
|
2383
2383
|
x: S,
|
|
2384
|
-
y:
|
|
2384
|
+
y: P,
|
|
2385
2385
|
data: A,
|
|
2386
2386
|
reset: C
|
|
2387
|
-
} = await
|
|
2387
|
+
} = await I({
|
|
2388
2388
|
x: u,
|
|
2389
2389
|
y: v,
|
|
2390
2390
|
initialPlacement: s,
|
|
@@ -2398,7 +2398,7 @@ const Er = 50, Pr = async (t, o, e) => {
|
|
|
2398
2398
|
floating: o
|
|
2399
2399
|
}
|
|
2400
2400
|
});
|
|
2401
|
-
u = S ?? u, v =
|
|
2401
|
+
u = S ?? u, v = P ?? v, b[z] = {
|
|
2402
2402
|
...b[z],
|
|
2403
2403
|
...A
|
|
2404
2404
|
}, C && h < Er && (h++, typeof C == "object" && (C.placement && (g = C.placement), C.rects && (l = C.rects === !0 ? await n.getElementRects({
|
|
@@ -2417,7 +2417,7 @@ const Er = 50, Pr = async (t, o, e) => {
|
|
|
2417
2417
|
strategy: c,
|
|
2418
2418
|
middlewareData: b
|
|
2419
2419
|
};
|
|
2420
|
-
},
|
|
2420
|
+
}, Pr = (t) => ({
|
|
2421
2421
|
name: "arrow",
|
|
2422
2422
|
options: t,
|
|
2423
2423
|
async fn(o) {
|
|
@@ -2432,16 +2432,16 @@ const Er = 50, Pr = async (t, o, e) => {
|
|
|
2432
2432
|
} = o, {
|
|
2433
2433
|
element: l,
|
|
2434
2434
|
padding: u = 0
|
|
2435
|
-
} =
|
|
2435
|
+
} = Pt(t, o) || {};
|
|
2436
2436
|
if (l == null)
|
|
2437
2437
|
return {};
|
|
2438
2438
|
const v = ac(u), g = {
|
|
2439
2439
|
x: e,
|
|
2440
2440
|
y: s
|
|
2441
|
-
}, h = Ye(c), b = Ke(h), _ = await n.getDimensions(l), w = h === "y", z = w ? "top" : "left",
|
|
2441
|
+
}, h = Ye(c), b = Ke(h), _ = await n.getDimensions(l), w = h === "y", z = w ? "top" : "left", I = w ? "bottom" : "right", S = w ? "clientHeight" : "clientWidth", P = r.reference[b] + r.reference[h] - g[h] - r.floating[b], A = g[h] - r.reference[h], C = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(l));
|
|
2442
2442
|
let B = C ? C[S] : 0;
|
|
2443
2443
|
(!B || !await (n.isElement == null ? void 0 : n.isElement(C))) && (B = i.floating[S] || r.floating[b]);
|
|
2444
|
-
const x =
|
|
2444
|
+
const x = P / 2 - A / 2, L = B / 2 - _[b] / 2 - 1, D = No(v[z], L), U = No(v[I], L), R = D, j = B - _[b] - U, F = B / 2 - _[b] / 2 + x, W = yr(R, F, j), oo = !a.arrow && Ot(c) != null && F !== W && r.reference[b] / 2 - (F < R ? D : U) - _[b] / 2 < 0, X = oo ? F < R ? F - R : F - j : 0;
|
|
2445
2445
|
return {
|
|
2446
2446
|
[h]: g[h] + X,
|
|
2447
2447
|
data: {
|
|
@@ -2475,15 +2475,15 @@ const Er = 50, Pr = async (t, o, e) => {
|
|
|
2475
2475
|
fallbackAxisSideDirection: b = "none",
|
|
2476
2476
|
flipAlignment: _ = !0,
|
|
2477
2477
|
...w
|
|
2478
|
-
} =
|
|
2478
|
+
} = Pt(t, o);
|
|
2479
2479
|
if ((e = r.arrow) != null && e.alignmentOffset)
|
|
2480
2480
|
return {};
|
|
2481
|
-
const z = rt(c),
|
|
2482
|
-
!g && C && A.push(...Cr(i, _, b,
|
|
2481
|
+
const z = rt(c), I = Eo(i), S = rt(i) === i, P = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), A = g || (S || !_ ? [re(i)] : kr(i)), C = b !== "none";
|
|
2482
|
+
!g && C && A.push(...Cr(i, _, b, P));
|
|
2483
2483
|
const B = [i, ...A], x = await a.detectOverflow(o, w), L = [];
|
|
2484
2484
|
let D = ((s = r.flip) == null ? void 0 : s.overflows) || [];
|
|
2485
2485
|
if (u && L.push(x[z]), v) {
|
|
2486
|
-
const F = xr(c, n,
|
|
2486
|
+
const F = xr(c, n, P);
|
|
2487
2487
|
L.push(x[F[0]], x[F[1]]);
|
|
2488
2488
|
}
|
|
2489
2489
|
if (D = [...D, {
|
|
@@ -2492,9 +2492,9 @@ const Er = 50, Pr = async (t, o, e) => {
|
|
|
2492
2492
|
}], !L.every((F) => F <= 0)) {
|
|
2493
2493
|
var U, R;
|
|
2494
2494
|
const F = (((U = r.flip) == null ? void 0 : U.index) || 0) + 1, W = B[F];
|
|
2495
|
-
if (W && (!(v === "alignment" ?
|
|
2495
|
+
if (W && (!(v === "alignment" ? I !== Eo(W) : !1) || // We leave the current main axis only if every placement on that axis
|
|
2496
2496
|
// overflows the main axis.
|
|
2497
|
-
D.every((G) => Eo(G.placement) ===
|
|
2497
|
+
D.every((G) => Eo(G.placement) === I ? G.overflows[0] > 0 : !0)))
|
|
2498
2498
|
return {
|
|
2499
2499
|
data: {
|
|
2500
2500
|
index: F,
|
|
@@ -2512,7 +2512,7 @@ const Er = 50, Pr = async (t, o, e) => {
|
|
|
2512
2512
|
const X = (j = D.filter((G) => {
|
|
2513
2513
|
if (C) {
|
|
2514
2514
|
const uo = Eo(G.placement);
|
|
2515
|
-
return uo ===
|
|
2515
|
+
return uo === I || // Create a bias to the `y` side axis due to horizontal
|
|
2516
2516
|
// reading directions favoring greater width.
|
|
2517
2517
|
uo === "y";
|
|
2518
2518
|
}
|
|
@@ -2558,7 +2558,7 @@ const Tr = function(t) {
|
|
|
2558
2558
|
} = o, {
|
|
2559
2559
|
strategy: c = "referenceHidden",
|
|
2560
2560
|
...r
|
|
2561
|
-
} =
|
|
2561
|
+
} = Pt(t, o);
|
|
2562
2562
|
switch (c) {
|
|
2563
2563
|
case "referenceHidden": {
|
|
2564
2564
|
const n = await s.detectOverflow(o, {
|
|
@@ -2595,7 +2595,7 @@ async function Nr(t, o) {
|
|
|
2595
2595
|
placement: e,
|
|
2596
2596
|
platform: s,
|
|
2597
2597
|
elements: c
|
|
2598
|
-
} = t, r = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), n = rt(e), i = Ot(e), a = Eo(e) === "y", l = Mr.has(n) ? -1 : 1, u = r && a ? -1 : 1, v =
|
|
2598
|
+
} = t, r = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), n = rt(e), i = Ot(e), a = Eo(e) === "y", l = Mr.has(n) ? -1 : 1, u = r && a ? -1 : 1, v = Pt(o, t);
|
|
2599
2599
|
let {
|
|
2600
2600
|
mainAxis: g,
|
|
2601
2601
|
crossAxis: h,
|
|
@@ -2654,15 +2654,15 @@ const Lr = function(t) {
|
|
|
2654
2654
|
apply: a = () => {
|
|
2655
2655
|
},
|
|
2656
2656
|
...l
|
|
2657
|
-
} =
|
|
2657
|
+
} = Pt(t, o), u = await n.detectOverflow(o, l), v = rt(c), g = Ot(c), h = Eo(c) === "y", {
|
|
2658
2658
|
width: b,
|
|
2659
2659
|
height: _
|
|
2660
2660
|
} = r.floating;
|
|
2661
2661
|
let w, z;
|
|
2662
2662
|
v === "top" || v === "bottom" ? (w = v, z = g === (await (n.isRTL == null ? void 0 : n.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (z = v, w = g === "end" ? "top" : "bottom");
|
|
2663
|
-
const
|
|
2664
|
-
let B =
|
|
2665
|
-
if ((e = o.middlewareData.shift) != null && e.enabled.x && (x = S), (s = o.middlewareData.shift) != null && s.enabled.y && (B =
|
|
2663
|
+
const I = _ - u.top - u.bottom, S = b - u.left - u.right, P = No(_ - u[w], I), A = No(b - u[z], S), C = !o.middlewareData.shift;
|
|
2664
|
+
let B = P, x = A;
|
|
2665
|
+
if ((e = o.middlewareData.shift) != null && e.enabled.x && (x = S), (s = o.middlewareData.shift) != null && s.enabled.y && (B = I), C && !g) {
|
|
2666
2666
|
const D = Q(u.left, 0), U = Q(u.right, 0), R = Q(u.top, 0), j = Q(u.bottom, 0);
|
|
2667
2667
|
h ? x = b - 2 * (D !== 0 || U !== 0 ? D + U : Q(u.left, u.right)) : B = _ - 2 * (R !== 0 || j !== 0 ? R + j : Q(u.top, u.bottom));
|
|
2668
2668
|
}
|
|
@@ -2844,8 +2844,8 @@ function nt(t, o, e, s) {
|
|
|
2844
2844
|
const g = J(r), h = s && io(s) ? J(s) : s;
|
|
2845
2845
|
let b = g, _ = Le(b);
|
|
2846
2846
|
for (; _ && s && h !== b; ) {
|
|
2847
|
-
const w = vt(_), z = _.getBoundingClientRect(),
|
|
2848
|
-
a *= w.x, l *= w.y, u *= w.x, v *= w.y, a += S, l +=
|
|
2847
|
+
const w = vt(_), z = _.getBoundingClientRect(), I = ao(_), S = z.left + (_.clientLeft + parseFloat(I.paddingLeft)) * w.x, P = z.top + (_.clientTop + parseFloat(I.paddingTop)) * w.y;
|
|
2848
|
+
a *= w.x, l *= w.y, u *= w.x, v *= w.y, a += S, l += P, b = J(_), _ = Le(b);
|
|
2849
2849
|
}
|
|
2850
2850
|
}
|
|
2851
2851
|
return ne({
|
|
@@ -2907,7 +2907,7 @@ function Wr(t) {
|
|
|
2907
2907
|
y: i
|
|
2908
2908
|
};
|
|
2909
2909
|
}
|
|
2910
|
-
const
|
|
2910
|
+
const Is = 25;
|
|
2911
2911
|
function Xr(t, o) {
|
|
2912
2912
|
const e = J(t), s = yo(t), c = e.visualViewport;
|
|
2913
2913
|
let r = s.clientWidth, n = s.clientHeight, i = 0, a = 0;
|
|
@@ -2919,8 +2919,8 @@ function Xr(t, o) {
|
|
|
2919
2919
|
const l = be(s);
|
|
2920
2920
|
if (l <= 0) {
|
|
2921
2921
|
const u = s.ownerDocument, v = u.body, g = getComputedStyle(v), h = u.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, b = Math.abs(s.clientWidth - v.clientWidth - h);
|
|
2922
|
-
b <=
|
|
2923
|
-
} else l <=
|
|
2922
|
+
b <= Is && (r -= b);
|
|
2923
|
+
} else l <= Is && (r += l);
|
|
2924
2924
|
return {
|
|
2925
2925
|
width: r,
|
|
2926
2926
|
height: n,
|
|
@@ -2937,7 +2937,7 @@ function Zr(t, o) {
|
|
|
2937
2937
|
y: l
|
|
2938
2938
|
};
|
|
2939
2939
|
}
|
|
2940
|
-
function
|
|
2940
|
+
function Ps(t, o, e) {
|
|
2941
2941
|
let s;
|
|
2942
2942
|
if (o === "viewport")
|
|
2943
2943
|
s = Xr(t, e);
|
|
@@ -2980,10 +2980,10 @@ function Yr(t) {
|
|
|
2980
2980
|
rootBoundary: s,
|
|
2981
2981
|
strategy: c
|
|
2982
2982
|
} = t;
|
|
2983
|
-
const n = [...e === "clippingAncestors" ? ve(o) ? [] : Kr(o, this._c) : [].concat(e), s], i =
|
|
2983
|
+
const n = [...e === "clippingAncestors" ? ve(o) ? [] : Kr(o, this._c) : [].concat(e), s], i = Ps(o, n[0], c);
|
|
2984
2984
|
let a = i.top, l = i.right, u = i.bottom, v = i.left;
|
|
2985
2985
|
for (let g = 1; g < n.length; g++) {
|
|
2986
|
-
const h =
|
|
2986
|
+
const h = Ps(o, n[g], c);
|
|
2987
2987
|
a = Q(h.top, a), l = No(h.right, l), u = No(h.bottom, u), v = Q(h.left, v);
|
|
2988
2988
|
}
|
|
2989
2989
|
return {
|
|
@@ -3107,17 +3107,17 @@ function en(t, o) {
|
|
|
3107
3107
|
rootMargin: -b + "px " + -_ + "px " + -w + "px " + -z + "px",
|
|
3108
3108
|
threshold: Q(0, No(1, a)) || 1
|
|
3109
3109
|
};
|
|
3110
|
-
let
|
|
3110
|
+
let P = !0;
|
|
3111
3111
|
function A(C) {
|
|
3112
3112
|
const B = C[0].intersectionRatio;
|
|
3113
3113
|
if (B !== a) {
|
|
3114
|
-
if (!
|
|
3114
|
+
if (!P)
|
|
3115
3115
|
return n();
|
|
3116
3116
|
B ? n(!1, B) : s = setTimeout(() => {
|
|
3117
3117
|
n(!1, 1e-7);
|
|
3118
3118
|
}, 1e3);
|
|
3119
3119
|
}
|
|
3120
|
-
B === 1 && !bc(l, t.getBoundingClientRect()) && n(),
|
|
3120
|
+
B === 1 && !bc(l, t.getBoundingClientRect()) && n(), P = !1;
|
|
3121
3121
|
}
|
|
3122
3122
|
try {
|
|
3123
3123
|
e = new IntersectionObserver(A, {
|
|
@@ -3149,8 +3149,8 @@ function sn(t, o, e, s) {
|
|
|
3149
3149
|
const v = l && i ? en(l, e) : null;
|
|
3150
3150
|
let g = -1, h = null;
|
|
3151
3151
|
n && (h = new ResizeObserver((z) => {
|
|
3152
|
-
let [
|
|
3153
|
-
|
|
3152
|
+
let [I] = z;
|
|
3153
|
+
I && I.target === l && h && o && (h.unobserve(o), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
|
|
3154
3154
|
var S;
|
|
3155
3155
|
(S = h) == null || S.observe(o);
|
|
3156
3156
|
})), e();
|
|
@@ -3163,12 +3163,12 @@ function sn(t, o, e, s) {
|
|
|
3163
3163
|
}
|
|
3164
3164
|
return e(), () => {
|
|
3165
3165
|
var z;
|
|
3166
|
-
u.forEach((
|
|
3167
|
-
c &&
|
|
3166
|
+
u.forEach((I) => {
|
|
3167
|
+
c && I.removeEventListener("scroll", e), r && I.removeEventListener("resize", e);
|
|
3168
3168
|
}), v == null || v(), (z = h) == null || z.disconnect(), h = null, a && cancelAnimationFrame(b);
|
|
3169
3169
|
};
|
|
3170
3170
|
}
|
|
3171
|
-
const cn = Lr, rn = Or, Ts = Br, nn = Tr, an =
|
|
3171
|
+
const cn = Lr, rn = Or, Ts = Br, nn = Tr, an = Pr, dn = (t, o, e) => {
|
|
3172
3172
|
const s = /* @__PURE__ */ new Map(), c = {
|
|
3173
3173
|
platform: tn,
|
|
3174
3174
|
...e
|
|
@@ -3176,7 +3176,7 @@ const cn = Lr, rn = Or, Ts = Br, nn = Tr, an = Ir, dn = (t, o, e) => {
|
|
|
3176
3176
|
...c.platform,
|
|
3177
3177
|
_c: s
|
|
3178
3178
|
};
|
|
3179
|
-
return
|
|
3179
|
+
return Ir(t, o, {
|
|
3180
3180
|
...c,
|
|
3181
3181
|
platform: r
|
|
3182
3182
|
});
|
|
@@ -3197,7 +3197,7 @@ var pn = class {
|
|
|
3197
3197
|
this.cleanup = sn(o, e, this.updatePlacement);
|
|
3198
3198
|
}
|
|
3199
3199
|
async computePlacement() {
|
|
3200
|
-
var S,
|
|
3200
|
+
var S, P;
|
|
3201
3201
|
const { arrowElement: t, alignment: o, caret: e, trigger: s, target: c, styleElement: r, matchWidth: n, open: i, alignmentAxisOffset: a, autoAlignBoundary: l, isTabTip: u } = this.options, v = (c == null ? void 0 : c.role) === "listbox", g = (c == null ? void 0 : c.localName) === "cds-custom-menu", h = r ?? c;
|
|
3202
3202
|
if (!h) return;
|
|
3203
3203
|
let b;
|
|
@@ -3233,7 +3233,7 @@ var pn = class {
|
|
|
3233
3233
|
const _ = getComputedStyle(h), z = u ? 0 : ((A) => {
|
|
3234
3234
|
const C = parseFloat(A);
|
|
3235
3235
|
return A.trim().endsWith("rem") ? C * 16 : C;
|
|
3236
|
-
})(_.getPropertyValue("--cds-popover-offset").trim()) ?? 10,
|
|
3236
|
+
})(_.getPropertyValue("--cds-popover-offset").trim()) ?? 10, I = [
|
|
3237
3237
|
cn(u ? 0 : {
|
|
3238
3238
|
alignmentAxis: a,
|
|
3239
3239
|
mainAxis: e ? z : 4
|
|
@@ -3294,7 +3294,7 @@ var pn = class {
|
|
|
3294
3294
|
if (i) {
|
|
3295
3295
|
const { x: A, y: C, placement: B, middlewareData: x, strategy: L } = await dn(s, h, {
|
|
3296
3296
|
strategy: "fixed",
|
|
3297
|
-
middleware:
|
|
3297
|
+
middleware: I,
|
|
3298
3298
|
placement: b
|
|
3299
3299
|
});
|
|
3300
3300
|
if (h.setAttribute("align", B), h.style.left = `${A}px`, h.style.top = `${C}px`, h.style.position = `${L}`, h.style.visibility = (S = x.hide) != null && S.referenceHidden ? "hidden" : "visible", t) {
|
|
@@ -3306,7 +3306,7 @@ var pn = class {
|
|
|
3306
3306
|
}[B.split("-")[0]];
|
|
3307
3307
|
t.style.left = D != null ? `${D}px` : "", t.style.top = U != null ? `${U}px` : "", t.style.right = "", t.style.bottom = "", t.style[R] = `${-t.offsetWidth / 2}px`;
|
|
3308
3308
|
}
|
|
3309
|
-
(this.host.tagName === "CDS-AI-LABEL" || this.host.tagName === "CDS-SLUG") && ((
|
|
3309
|
+
(this.host.tagName === "CDS-AI-LABEL" || this.host.tagName === "CDS-SLUG") && ((P = this.host) == null || P.setAttribute("alignment", B));
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
3312
3312
|
hostUpdated() {
|
|
@@ -3501,8 +3501,8 @@ let Z = (tt = class extends Xt(y) {
|
|
|
3501
3501
|
return "cds-custom-popover-closed";
|
|
3502
3502
|
}
|
|
3503
3503
|
}, Jt = tt, tt.styles = gc, tt);
|
|
3504
|
-
p([
|
|
3505
|
-
p([
|
|
3504
|
+
p([It("slot")], Z.prototype, "_triggerSlotNode", void 0);
|
|
3505
|
+
p([It('slot[name="content"]')], Z.prototype, "_contentSlotNode", void 0);
|
|
3506
3506
|
p([d({
|
|
3507
3507
|
reflect: !0,
|
|
3508
3508
|
type: String
|
|
@@ -3780,7 +3780,7 @@ var An = {
|
|
|
3780
3780
|
}],
|
|
3781
3781
|
name: "api",
|
|
3782
3782
|
size: 16
|
|
3783
|
-
},
|
|
3783
|
+
}, In = {
|
|
3784
3784
|
elem: "svg",
|
|
3785
3785
|
attrs: {
|
|
3786
3786
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -3795,7 +3795,7 @@ var An = {
|
|
|
3795
3795
|
}],
|
|
3796
3796
|
name: "app-connectivity",
|
|
3797
3797
|
size: 20
|
|
3798
|
-
},
|
|
3798
|
+
}, Pn = {
|
|
3799
3799
|
elem: "svg",
|
|
3800
3800
|
attrs: {
|
|
3801
3801
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4515,8 +4515,8 @@ const ii = "https://ibmassistme-dev.zll1vg8lrcq.us-south.codeengine.appdomain.cl
|
|
|
4515
4515
|
const s = `${t}${o}`, n = {
|
|
4516
4516
|
AiLaunch20: An,
|
|
4517
4517
|
Api16: En,
|
|
4518
|
-
AppConnectivity20:
|
|
4519
|
-
ArrowRight16:
|
|
4518
|
+
AppConnectivity20: In,
|
|
4519
|
+
ArrowRight16: Pn,
|
|
4520
4520
|
ChartVennDiagram20: On,
|
|
4521
4521
|
Checkmark16: Tn,
|
|
4522
4522
|
CloudServices20: Mn,
|
|
@@ -4607,7 +4607,7 @@ let eo = class extends y {
|
|
|
4607
4607
|
};
|
|
4608
4608
|
}
|
|
4609
4609
|
render() {
|
|
4610
|
-
var e, s, c, r, n, i, a, l, u, v, g, h, b, _, w, z,
|
|
4610
|
+
var e, s, c, r, n, i, a, l, u, v, g, h, b, _, w, z, I, S, P, A, C, B;
|
|
4611
4611
|
const o = "title-icon";
|
|
4612
4612
|
return typeof this.isCollapsible > "u" || this.isCollapsible ? this.isSideNavMenuItems ? m`
|
|
4613
4613
|
<cds-custom-side-nav-menu
|
|
@@ -4689,7 +4689,7 @@ let eo = class extends y {
|
|
|
4689
4689
|
<cds-custom-side-nav-link
|
|
4690
4690
|
role="link"
|
|
4691
4691
|
href="${(z = this.link) == null ? void 0 : z.href}"
|
|
4692
|
-
@click="${(
|
|
4692
|
+
@click="${(I = this.link) == null ? void 0 : I.onClick}"
|
|
4693
4693
|
title="${(S = this.link) == null ? void 0 : S.label}"
|
|
4694
4694
|
class="${vo({
|
|
4695
4695
|
[`${O}--side-nav__link--current`]: this.isActive
|
|
@@ -4697,7 +4697,7 @@ let eo = class extends y {
|
|
|
4697
4697
|
@mouseleave="${() => this._setIsHoveringOnSideNavItem(!1)}"
|
|
4698
4698
|
@mouseenter="${() => this._setIsHoveringOnSideNavItem(!0)}"
|
|
4699
4699
|
large="${!this.isHybridIpaas}">
|
|
4700
|
-
${(
|
|
4700
|
+
${(P = this.link) != null && P.iconName ? N((A = this.link) == null ? void 0 : A.iconName, 16, o) : (C = this.link) == null ? void 0 : C.label}
|
|
4701
4701
|
</cds-custom-side-nav-link>
|
|
4702
4702
|
<cds-custom-popover-content
|
|
4703
4703
|
>${(B = this.link) == null ? void 0 : B.label}</cds-custom-popover-content
|
|
@@ -5203,7 +5203,7 @@ var Ai = Object.defineProperty, Ei = Object.getOwnPropertyDescriptor, os = (t, o
|
|
|
5203
5203
|
(n = t[r]) && (c = (s ? n(o, e, c) : n(c)) || c);
|
|
5204
5204
|
return s && c && Ai(o, e, c), c;
|
|
5205
5205
|
};
|
|
5206
|
-
const { stablePrefix:
|
|
5206
|
+
const { stablePrefix: Ii } = ro;
|
|
5207
5207
|
let jt = class extends y {
|
|
5208
5208
|
constructor() {
|
|
5209
5209
|
super(), this.open = !1, this.trialConfig = {}, this.handleOutsideClick = this.handleOutsideClick.bind(this);
|
|
@@ -5245,9 +5245,9 @@ os([
|
|
|
5245
5245
|
d({ type: Object })
|
|
5246
5246
|
], jt.prototype, "trialConfig", 2);
|
|
5247
5247
|
jt = os([
|
|
5248
|
-
so(`${
|
|
5248
|
+
so(`${Ii}-global-header-trial-popover`)
|
|
5249
5249
|
], jt);
|
|
5250
|
-
const
|
|
5250
|
+
const Pi = `/**
|
|
5251
5251
|
* @license
|
|
5252
5252
|
*
|
|
5253
5253
|
* Copyright IBM Corp. 2025
|
|
@@ -5295,7 +5295,7 @@ let zo = class extends y {
|
|
|
5295
5295
|
}
|
|
5296
5296
|
};
|
|
5297
5297
|
zo.styles = K`
|
|
5298
|
-
${co(
|
|
5298
|
+
${co(Pi)}
|
|
5299
5299
|
`;
|
|
5300
5300
|
at([
|
|
5301
5301
|
d({ type: String })
|
|
@@ -6544,7 +6544,7 @@ let Co = class extends y {
|
|
|
6544
6544
|
}), Zs(this.headerProps));
|
|
6545
6545
|
}
|
|
6546
6546
|
render() {
|
|
6547
|
-
var t, o, e, s, c, r, n, i, a, l, u, v, g, h, b, _, w, z,
|
|
6547
|
+
var t, o, e, s, c, r, n, i, a, l, u, v, g, h, b, _, w, z, I, S, P, A, C, B, x, L, D, U;
|
|
6548
6548
|
return m`
|
|
6549
6549
|
<cds-custom-header
|
|
6550
6550
|
class="${O}__header"
|
|
@@ -6612,7 +6612,7 @@ let Co = class extends y {
|
|
|
6612
6612
|
|
|
6613
6613
|
<!-- sideNav link render -->
|
|
6614
6614
|
${this.headerProps.sideNav.links && this.headerProps.sideNav.links.length > 0 ? m`
|
|
6615
|
-
${(S = (
|
|
6615
|
+
${(S = (I = this.headerProps.sideNav) == null ? void 0 : I.links) == null ? void 0 : S.map((R) => {
|
|
6616
6616
|
var j, F, W;
|
|
6617
6617
|
return m`
|
|
6618
6618
|
<clabs-global-header-side-nav-item
|
|
@@ -6632,7 +6632,7 @@ let Co = class extends y {
|
|
|
6632
6632
|
</clabs-global-header-wide-side-nav>
|
|
6633
6633
|
` : f}
|
|
6634
6634
|
${this.headerProps && this.headerProps.sideNavPropsV2 ? m`<cds-custom-side-nav
|
|
6635
|
-
aria-label=${((A = (
|
|
6635
|
+
aria-label=${((A = (P = this.headerProps) == null ? void 0 : P.sideNavPropsV2) == null ? void 0 : A.buttonLabel) ?? "Side navigation"}
|
|
6636
6636
|
collapse-mode="rail"
|
|
6637
6637
|
?expanded="${typeof this.headerProps.sideNavPropsV2.isExpandable < "u" && this.headerProps.sideNavPropsV2.isExpandable ? this.isMenuOpen : !1}"
|
|
6638
6638
|
?is-not-persistent="${!(typeof ((B = (C = this.headerProps) == null ? void 0 : C.sideNavPropsV2) == null ? void 0 : B.isCollapsible) < "u" && !((L = (x = this.headerProps) == null ? void 0 : x.sideNav) != null && L.isCollapsible))}"
|
|
@@ -6703,7 +6703,7 @@ const da = `.cds--layout--size-xs{--cds-layout-size-height-context: var(--cds-la
|
|
|
6703
6703
|
*/
|
|
6704
6704
|
class pa {
|
|
6705
6705
|
constructor(o) {
|
|
6706
|
-
this.sessionStatusIntervalId = null, this.isLoggingOut = !1, this.isRefreshing = !1, this.config = o, this.sessionStatusInterval = o.sessionStatusInterval || 10, this.idleTimeoutInterval = o.idleTimeoutInterval || 28, this.basePath = o.basePath, this.activityEvents = [
|
|
6706
|
+
this.sessionStatusIntervalId = null, this.isLoggingOut = !1, this.isRefreshing = !1, this.currentTtl = null, this.config = o, this.sessionStatusInterval = o.sessionStatusInterval || 10, this.idleTimeoutInterval = o.idleTimeoutInterval || 28, this.basePath = o.basePath, this.activityEvents = [
|
|
6707
6707
|
"mousedown",
|
|
6708
6708
|
"mousemove",
|
|
6709
6709
|
"keydown",
|
|
@@ -6721,7 +6721,7 @@ class pa {
|
|
|
6721
6721
|
method: "GET",
|
|
6722
6722
|
credentials: "same-origin"
|
|
6723
6723
|
});
|
|
6724
|
-
e.ok ? (console.log("Solis token refresh successful"), this.isRefreshing = !1) : e.status === 401 || e.status === 403 ? (console.error("Solis token refresh unauthorized - triggering logout"), this.isRefreshing = !1, await this.performLogout(
|
|
6724
|
+
e.ok ? (console.log("Solis token refresh successful"), this.isRefreshing = !1) : e.status === 401 || e.status === 403 ? (console.error("Solis token refresh unauthorized - triggering logout"), this.isRefreshing = !1, await this.performLogout()) : (console.error("Solis token refresh failed:", e.status), this.isRefreshing = !1);
|
|
6725
6725
|
} catch (e) {
|
|
6726
6726
|
console.error("Solis token refresh error:", e.message), this.isRefreshing = !1;
|
|
6727
6727
|
}
|
|
@@ -6752,7 +6752,7 @@ class pa {
|
|
|
6752
6752
|
this.isIdle = !0;
|
|
6753
6753
|
const o = await this.checkSessionStatus();
|
|
6754
6754
|
if (!o) {
|
|
6755
|
-
await this.performLogout(
|
|
6755
|
+
await this.performLogout();
|
|
6756
6756
|
return;
|
|
6757
6757
|
}
|
|
6758
6758
|
typeof o == "number" && o <= 60 && !this.isRefreshing && this.triggerRefresh();
|
|
@@ -6779,40 +6779,44 @@ class pa {
|
|
|
6779
6779
|
return console.error("Solis session status unknown:", e.message), !1;
|
|
6780
6780
|
}
|
|
6781
6781
|
}
|
|
6782
|
-
async performLogout(
|
|
6782
|
+
async performLogout() {
|
|
6783
6783
|
if (this.isLoggingOut)
|
|
6784
6784
|
return;
|
|
6785
6785
|
if (this.isLoggingOut = !0, this.stopSessionStatusPolling(), this.unregisterActivityListeners(), await this.checkSessionStatus()) {
|
|
6786
|
-
const
|
|
6786
|
+
const s = this.basePath ? this.basePath + "/hybrid-ipaas/v1/solis/session/logout" : "/hybrid-ipaas/v1/solis/session/logout";
|
|
6787
6787
|
try {
|
|
6788
|
-
const
|
|
6788
|
+
const c = await fetch(s, {
|
|
6789
6789
|
method: "POST",
|
|
6790
6790
|
credentials: "same-origin"
|
|
6791
6791
|
});
|
|
6792
|
-
|
|
6793
|
-
} catch (
|
|
6794
|
-
console.error("Solis session logout error:",
|
|
6792
|
+
c.ok ? console.log("Solis session logout - successful") : c.status === 401 ? console.log("Solis session logout - session already expired") : console.error("Solis session logout failed:", c.status);
|
|
6793
|
+
} catch (c) {
|
|
6794
|
+
console.error("Solis session logout error:", c.message);
|
|
6795
6795
|
}
|
|
6796
6796
|
}
|
|
6797
6797
|
if (this.logoutCallback)
|
|
6798
6798
|
try {
|
|
6799
6799
|
await this.logoutCallback();
|
|
6800
|
-
} catch (
|
|
6801
|
-
console.error("Logout failed with error: ",
|
|
6800
|
+
} catch (s) {
|
|
6801
|
+
console.error("Logout failed with error: ", s.message);
|
|
6802
6802
|
}
|
|
6803
|
-
const
|
|
6803
|
+
const e = "/logout";
|
|
6804
6804
|
this.redirect(
|
|
6805
|
-
this.basePath ? `${this.basePath}${
|
|
6805
|
+
this.basePath ? `${this.basePath}${e}` : e
|
|
6806
6806
|
);
|
|
6807
6807
|
}
|
|
6808
6808
|
startSessionStatusPolling() {
|
|
6809
6809
|
const o = async () => {
|
|
6810
6810
|
const e = await this.checkSessionStatus();
|
|
6811
6811
|
if (!e) {
|
|
6812
|
-
await this.performLogout(
|
|
6812
|
+
await this.performLogout();
|
|
6813
6813
|
return;
|
|
6814
6814
|
}
|
|
6815
|
-
typeof e == "number"
|
|
6815
|
+
if (typeof e == "number") {
|
|
6816
|
+
const s = this.currentTtl !== null && e > this.currentTtl;
|
|
6817
|
+
(e <= 60 || s) && !this.isRefreshing && this.triggerRefresh(), this.currentTtl = e;
|
|
6818
|
+
}
|
|
6819
|
+
this.sessionStatusIntervalId = window.setTimeout(
|
|
6816
6820
|
o,
|
|
6817
6821
|
this.sessionStatusInterval * 1e3
|
|
6818
6822
|
);
|
|
@@ -6913,7 +6917,7 @@ let $ = class extends y {
|
|
|
6913
6917
|
t ? t.click() : window.open("https://www.ibm.com/privacy");
|
|
6914
6918
|
}
|
|
6915
6919
|
initializeSessionManager() {
|
|
6916
|
-
if (import("./SessionExpiryModal-
|
|
6920
|
+
if (import("./SessionExpiryModal-BB_WcdTF.mjs"), !this.sessionManager) {
|
|
6917
6921
|
let t;
|
|
6918
6922
|
this.logoutCallback ? t = this.logoutCallback : this.logoutCallbackEvent && (t = () => {
|
|
6919
6923
|
const o = new CustomEvent(this.logoutCallbackEvent, {
|
|
@@ -6959,7 +6963,7 @@ let $ = class extends y {
|
|
|
6959
6963
|
};
|
|
6960
6964
|
return this.solisSessionManagerEnabled ? t.onClickHandler = () => {
|
|
6961
6965
|
var o;
|
|
6962
|
-
return (o = this.sessionManager) == null ? void 0 : o.performLogout(
|
|
6966
|
+
return (o = this.sessionManager) == null ? void 0 : o.performLogout();
|
|
6963
6967
|
} : this.logoutCallback ? t.onClickHandler = this.logoutCallback : this.logoutCallbackEvent ? t.onClickHandler = () => {
|
|
6964
6968
|
const o = new CustomEvent(this.logoutCallbackEvent, {
|
|
6965
6969
|
bubbles: !0,
|
|
@@ -7214,7 +7218,7 @@ export {
|
|
|
7214
7218
|
Co as C,
|
|
7215
7219
|
fo as F,
|
|
7216
7220
|
q as H,
|
|
7217
|
-
|
|
7221
|
+
Pn as _,
|
|
7218
7222
|
Xt as a,
|
|
7219
7223
|
$ as b,
|
|
7220
7224
|
mr as c,
|
|
@@ -7223,7 +7227,7 @@ export {
|
|
|
7223
7227
|
m as f,
|
|
7224
7228
|
H as g,
|
|
7225
7229
|
Y as h,
|
|
7226
|
-
|
|
7230
|
+
It as i,
|
|
7227
7231
|
K as j,
|
|
7228
7232
|
y as k,
|
|
7229
7233
|
Dt as l,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as b, F as _, k as g, o as v, l as f, d as y, f as u, e as r, n as e, g as w, r as x, m as h, t as k, s as z } from "./HybridIpaasHeader-
|
|
1
|
+
import { j as b, F as _, k as g, o as v, l as f, d as y, f as u, e as r, n as e, g as w, r as x, m as h, t as k, s as z } from "./HybridIpaasHeader-CecmHXAY.mjs";
|
|
2
2
|
var C = {
|
|
3
3
|
elem: "svg",
|
|
4
4
|
attrs: {
|
package/es/wc-global-header.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as se, f as u, r as K, j as F, n as d, k as v, A as X, t as Z, s as q, e as i, g as x, F as U, h as V, o as b, i as Y, l as L, _ as oe, a as W, c as ce, H as D, p as ie } from "./HybridIpaasHeader-
|
|
2
|
-
import { b as De } from "./HybridIpaasHeader-
|
|
1
|
+
import { C as se, f as u, r as K, j as F, n as d, k as v, A as X, t as Z, s as q, e as i, g as x, F as U, h as V, o as b, i as Y, l as L, _ as oe, a as W, c as ce, H as D, p as ie } from "./HybridIpaasHeader-CecmHXAY.mjs";
|
|
2
|
+
import { b as De } from "./HybridIpaasHeader-CecmHXAY.mjs";
|
|
3
3
|
var le = {
|
|
4
4
|
elem: "svg",
|
|
5
5
|
attrs: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon-labs/wc-global-header",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.101.0",
|
|
4
4
|
"author": "Your Name <your@email.com>",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"vite": "^6.4.2",
|
|
50
50
|
"webdriverio": "^9.23.2"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "60742a5ed29e05053a704ac03b1c17bc9e030277"
|
|
53
53
|
}
|