scb-wc 0.1.249 → 0.1.251

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scb-wc",
3
- "version": "0.1.249",
3
+ "version": "0.1.251",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
@@ -569,5 +569,5 @@
569
569
  "./scb-viz/*": null,
570
570
  "./mvc/*": "./mvc/*"
571
571
  },
572
- "buildHash": "5D8608FA841C895BA23E8A60C0A84998CB24A8798048BAD58F9BC26987A1D100"
572
+ "buildHash": "5CB39F5B524E5839CEC63A55D99053BF287B0AE174A33ABBC4F0102C9308EDE3"
573
573
  }
@@ -79,6 +79,7 @@ export declare class ScbHeader extends LitElement {
79
79
  private _slotNavItems;
80
80
  private _slotUtils;
81
81
  private _slotMenu;
82
+ private _hasResponsiveActions;
82
83
  private _ro?;
83
84
  private _observedLayout;
84
85
  private _measureScheduled;
@@ -108,6 +109,8 @@ export declare class ScbHeader extends LitElement {
108
109
  private get _searchWrap();
109
110
  private get _menuBtn();
110
111
  private get _tabsNav();
112
+ private get _customActions();
113
+ private _onActionsSlotChange;
111
114
  private _attachSlotObservers;
112
115
  private _sameNavItems;
113
116
  private _sameUtilityItems;
@@ -3,7 +3,12 @@ import t from "../_virtual/_@oxc-project_runtime@0.139.0/helpers/esm/decorate.js
3
3
  import { LitElement as n, css as r, html as i, nothing as a } from "lit";
4
4
  import { customElement as o, property as s, state as c } from "lit/decorators.js";
5
5
  //#region src/scb-components/scb-header/scb-header.ts
6
- var l, u = 0, d = [
6
+ var l, u = 0, d = /* @__PURE__ */ new Set([
7
+ "search",
8
+ "actions",
9
+ "actions-desktop",
10
+ "actions-mobile"
11
+ ]), f = [
7
12
  0,
8
13
  2,
9
14
  4,
@@ -29,7 +34,7 @@ var l, u = 0, d = [
29
34
  if (t) {
30
35
  if (/^\d+$/.test(t)) {
31
36
  let e = Math.max(0, Math.min(14, parseInt(t, 10)));
32
- return `var(--spacing-${e}, ${d[e]}px)`;
37
+ return `var(--spacing-${e}, ${f[e]}px)`;
33
38
  }
34
39
  return t;
35
40
  }
@@ -44,6 +49,7 @@ var l, u = 0, d = [
44
49
  }
45
50
  }, r = (e) => e != null && !/^(false|0|off|no)$/i.test(e.trim()), i = (e) => {
46
51
  for (let t of Array.from(e.children)) {
52
+ if (d.has(t.getAttribute("slot") ?? "")) continue;
47
53
  let e = t.tagName.toLowerCase();
48
54
  if (e === "scb-header-tab" || e === "scb-dropdown") return !0;
49
55
  }
@@ -105,24 +111,24 @@ var l, u = 0, d = [
105
111
  o.disconnect();
106
112
  });
107
113
  })();
108
- var f = {
114
+ var p = {
109
115
  fromAttribute: (e) => e == null || !/^(false|0|off|no)$/i.test(e),
110
116
  toAttribute: (e) => String(!!e)
111
- }, p = {
117
+ }, m = {
112
118
  fromAttribute: (e) => e != null && !/^(false|0|off|no)$/i.test(e),
113
119
  toAttribute: (e) => e ? "" : null
114
- }, m = {
120
+ }, h = {
115
121
  fromAttribute: (e) => e === "small" || e === "medium" || e === "large" ? e : "medium",
116
122
  toAttribute: (e) => {
117
123
  let t = String(e ?? "");
118
124
  return t === "small" || t === "medium" || t === "large" ? t : null;
119
125
  }
120
- }, h = class extends n {
126
+ }, g = class extends n {
121
127
  static {
122
128
  l = this;
123
129
  }
124
130
  constructor() {
125
- super(), this.maxWidth = "1440px", this.size = e["scb-header"].size, this.logoText = "", this.logotypeText = "", this.logoAlt = "", this.logoHref = "/", this.logoSrc = "", this.logoWidth = "", this.logoHeight = "", this.logoAspectRatio = "", this.logoInvertDm = !1, this.banner = !1, this.tabs = [], this.activeTab = null, this.reserveTabs = !1, this.layoutPending = !1, this.utilityItems = [], this.searchButtonLabel = "Sök", this.searchClearLabel = "Rensa sökfält", this.searchCloseLabel = "Stäng sök", this.menuButtonLabel = "Meny", this.menuOpenLabel = "Öppna meny", this.utilityNavigationLabel = "Funktionslänkar", this.mainNavigationLabel = "Huvudnavigering", this.deferDrawer = !1, this.showDrawer = !0, this.alwaysShowMenuButton = !1, this.showSearch = !0, this.includeUtilityInMenu = !1, this.drawerOverlay = !0, this.searchText = "", this._drawerId = "main-drawer", this._menuExpanded = !1, this._searchId = "header-search", this._drawerReady = !1, this._mobileSearchOpen = !1, this._initialUpgradeComplete = !1, this._slotNavItems = [], this._slotUtils = [], this._slotMenu = [], this._observedLayout = [], this._measureScheduled = !1, this._scheduleMeasure = () => {
131
+ super(), this.maxWidth = "1440px", this.size = e["scb-header"].size, this.logoText = "", this.logotypeText = "", this.logoAlt = "", this.logoHref = "/", this.logoSrc = "", this.logoWidth = "", this.logoHeight = "", this.logoAspectRatio = "", this.logoInvertDm = !1, this.banner = !1, this.tabs = [], this.activeTab = null, this.reserveTabs = !1, this.layoutPending = !1, this.utilityItems = [], this.searchButtonLabel = "Sök", this.searchClearLabel = "Rensa sökfält", this.searchCloseLabel = "Stäng sök", this.menuButtonLabel = "Meny", this.menuOpenLabel = "Öppna meny", this.utilityNavigationLabel = "Funktionslänkar", this.mainNavigationLabel = "Huvudnavigering", this.deferDrawer = !1, this.showDrawer = !0, this.alwaysShowMenuButton = !1, this.showSearch = !0, this.includeUtilityInMenu = !1, this.drawerOverlay = !0, this.searchText = "", this._drawerId = "main-drawer", this._menuExpanded = !1, this._searchId = "header-search", this._drawerReady = !1, this._mobileSearchOpen = !1, this._initialUpgradeComplete = !1, this._slotNavItems = [], this._slotUtils = [], this._slotMenu = [], this._hasResponsiveActions = !1, this._observedLayout = [], this._measureScheduled = !1, this._scheduleMeasure = () => {
126
132
  this.layoutPending || this._measureScheduled || (this._measureScheduled = !0, requestAnimationFrame(() => {
127
133
  this._measureScheduled = !1, this._measure();
128
134
  }));
@@ -144,8 +150,15 @@ var f = {
144
150
  String(r || i || "").trim() && this._closeDrawerNow();
145
151
  }, this._onMenuSelectAlias = (e) => {
146
152
  e.stopPropagation();
147
- }, this._collapsed = !1, this._unlockAtWidth = 0, this._tabsCollapsed = !1, this._desktop = typeof window < "u" && window.innerWidth >= l.BP_MD_DEFAULT, this._hideLogoText = !1, this._slotWatchers = [], this._harvestPending = !1, this._harvest = (e = {}) => {
148
- let t = Array.from(this.children), n = [], r = [], i = [], a = -1, o = !1, s = (e) => ({
153
+ }, this._collapsed = !1, this._unlockAtWidth = 0, this._tabsCollapsed = !1, this._desktop = typeof window < "u" && window.innerWidth >= l.BP_MD_DEFAULT, this._hideLogoText = !1, this._slotWatchers = [], this._harvestPending = !1, this._onActionsSlotChange = () => {
154
+ this._hasResponsiveActions = this._customActions.some((e) => e.slot !== "actions"), this._observeLayout(), this._scheduleMeasure();
155
+ }, this._harvest = (e = {}) => {
156
+ let t = Array.from(this.children);
157
+ this._hasResponsiveActions = t.some((e) => {
158
+ let t = e.getAttribute("slot") ?? "";
159
+ return t !== "actions" && d.has(t);
160
+ });
161
+ let n = [], r = [], i = [], a = -1, o = !1, s = (e) => ({
149
162
  label: e.getAttribute("label") ?? "",
150
163
  href: e.getAttribute("href") ?? void 0,
151
164
  icon: e.getAttribute("icon") ?? void 0
@@ -153,6 +166,7 @@ var f = {
153
166
  e.hasAttribute("role") && e.removeAttribute("role"), e.hasAttribute("hidden") || e.setAttribute("hidden", ""), e.getAttribute("aria-hidden") !== "true" && e.setAttribute("aria-hidden", "true");
154
167
  };
155
168
  for (let e of t) {
169
+ if (d.has(e.getAttribute("slot") ?? "")) continue;
156
170
  let t = e.tagName.toLowerCase();
157
171
  if (this._isDrawerCloseNode(e)) {
158
172
  this._syncDrawerCloseNode(e);
@@ -219,8 +233,8 @@ var f = {
219
233
  }
220
234
  e.hasAttribute("slot") || c(e);
221
235
  }
222
- let l = !this._sameNavItems(this._slotNavItems, n), u = !this._sameUtilityItems(this._slotUtils, r), d = !this._sameMenuNodes(this._slotMenu, i);
223
- l && (this._slotNavItems = n), u && (this._slotUtils = r), d && (this._slotMenu = i), o && this._ensureDropdownReady(), !this.hasAttribute("active-tab") && a >= 0 && this.activeTab !== a && (this.activeTab = a), (e.scheduleMeasure ?? !0) && queueMicrotask(() => {
236
+ let l = !this._sameNavItems(this._slotNavItems, n), u = !this._sameUtilityItems(this._slotUtils, r), f = !this._sameMenuNodes(this._slotMenu, i);
237
+ l && (this._slotNavItems = n), u && (this._slotUtils = r), f && (this._slotMenu = i), o && this._ensureDropdownReady(), !this.hasAttribute("active-tab") && a >= 0 && this.activeTab !== a && (this.activeTab = a), (e.scheduleMeasure ?? !0) && queueMicrotask(() => {
224
238
  this.updateComplete.then(() => {
225
239
  this._scheduleMeasure();
226
240
  });
@@ -233,20 +247,22 @@ var f = {
233
247
  this._desktop = n >= this.BP_MD;
234
248
  let r = e.clientWidth, i = this._overflows(this._util), a = !this._desktop || i;
235
249
  this._collapsed ? !a && r >= this._unlockAtWidth && this._setCollapsed(!1) : a && (this._unlockAtWidth = r + this._HYST, this._setCollapsed(!0)), this._setTabsCollapsed(this._tabsOverflows());
236
- let o = !1;
250
+ let o = this.renderRoot.querySelector(".actions"), s = this._customActions;
251
+ for (let e of s) e.slot === "actions" || e.getClientRects().length > 0 || (e.matches("scb-dropdown") && e.removeAttribute("open"), e.querySelectorAll("scb-dropdown[open]").forEach((e) => e.removeAttribute("open")));
252
+ let c = s.filter((e) => !e.hidden && (this._hasResponsiveActions ? e.getClientRects().length > 0 : this._visible(e))), l = o ? this._num(getComputedStyle(o).columnGap, 0) : 0, u = !1;
237
253
  if (this.showSearch && n >= this.BP_SM && n < this.BP_MD && this._searchWrap) {
238
- let i = getComputedStyle(this._searchWrap), a = Math.max(this._num(i.minWidth, this._tokenPx("--scb-header-search-min", 250)), this._tokenPx("--scb-header-search-min", 250)), s = this._num(getComputedStyle(e).gap, this._tokenPx("--spacing-7", 24)), c = this.showDrawer && (this.alwaysShowMenuButton || n < this.BP_MD || this._collapsed) ? this._menuBtn?.getBoundingClientRect().width || this._tokenPx("--icon-size-extra-extra-large", 48) : 0;
239
- o = t.getBoundingClientRect().width + s + a + s + c + 8 > r + .5;
254
+ let i = getComputedStyle(this._searchWrap), a = Math.max(this._num(i.minWidth, this._tokenPx("--scb-header-search-min", 250)), this._tokenPx("--scb-header-search-min", 250)), o = this._num(getComputedStyle(e).gap, this._tokenPx("--spacing-7", 24)), s = this.showDrawer && (this.alwaysShowMenuButton || n < this.BP_MD || this._collapsed) ? this._menuBtn?.getBoundingClientRect().width || this._tokenPx("--icon-size-extra-extra-large", 48) : 0;
255
+ u = t.getBoundingClientRect().width + o + a + o + s + c.reduce((e, t) => e + t.getBoundingClientRect().width + l, 0) + 8 > r + .5;
240
256
  }
241
- this._setHideSearch(o);
242
- let s = !1, c = this.renderRoot.querySelector(".actions"), l = Array.from(c?.querySelectorAll(".header-icon-button") ?? []).filter((e) => this._visible(e));
243
- if (l.length > 0 && !this._visible(this._util) && !this._visible(this._searchWrap)) {
244
- let n = this._num(getComputedStyle(e).gap, this._tokenPx("--spacing-7", 24)), i = c ? this._num(getComputedStyle(c).columnGap, 0) : 0, a = l.reduce((e, t) => e + t.getBoundingClientRect().width, 0) + i * Math.max(0, l.length - 1);
257
+ this._setHideSearch(u);
258
+ let d = !1, f = [...Array.from(o?.querySelectorAll(".header-icon-button") ?? []), ...c].filter((e) => this._visible(e));
259
+ if (f.length > 0 && !this._visible(this._util) && !this._visible(this._searchWrap)) {
260
+ let n = this._num(getComputedStyle(e).gap, this._tokenPx("--spacing-7", 24)), i = f.reduce((e, t) => e + t.getBoundingClientRect().width, 0) + l * Math.max(0, f.length - 1);
245
261
  this._hideLogoText && this.removeAttribute("data-hide-logo-text");
246
- let o = t.getBoundingClientRect().width;
247
- this._hideLogoText && this.setAttribute("data-hide-logo-text", ""), s = o + n + a + (this._hideLogoText ? this._HYST : 0) > r + .5;
262
+ let a = t.getBoundingClientRect().width;
263
+ this._hideLogoText && this.setAttribute("data-hide-logo-text", ""), d = a + n + i + (this._hideLogoText ? this._HYST : 0) > r + .5;
248
264
  }
249
- this._setHideLogoText(s);
265
+ this._setHideLogoText(d);
250
266
  }, this._onGlobalFocusRingKeydown = (e) => {
251
267
  e.key === "Tab" && (this.toggleAttribute("data-keyboard-focus", !0), this._ensureFocusRingReady());
252
268
  }, this._onGlobalFocusRingPointerDown = () => {
@@ -263,7 +279,11 @@ var f = {
263
279
  composed: !0
264
280
  }));
265
281
  }, this._onDrawerClosed = () => {
266
- this._menuExpanded = !1, this._syncMenuBtnAria(), this.dispatchEvent(new CustomEvent("drawer-close", {
282
+ this._menuExpanded = !1, this._syncMenuBtnAria(), this._hasResponsiveActions && requestAnimationFrame(() => {
283
+ if (!this.isConnected || this._menuExpanded) return;
284
+ let e = this.renderRoot.querySelector("scb-drawer"), t = this.shadowRoot?.activeElement ?? this.ownerDocument.activeElement;
285
+ (!t || t === this.ownerDocument.body || t === e || e?.contains(t)) && this._menuBtn?.focus({ preventScroll: !0 });
286
+ }), this.dispatchEvent(new CustomEvent("drawer-close", {
267
287
  bubbles: !0,
268
288
  composed: !0
269
289
  })), this.dispatchEvent(new CustomEvent("drawerclose", {
@@ -832,6 +852,28 @@ var f = {
832
852
  min-width: 0;
833
853
  }
834
854
 
855
+ slot[name='search'],
856
+ slot[name='actions'],
857
+ slot[name='actions-desktop'] {
858
+ display: contents;
859
+ }
860
+
861
+ slot[name='actions-mobile'] {
862
+ display: none;
863
+ }
864
+
865
+ @media (max-width: 839.98px) {
866
+ slot[name='actions-desktop'] { display: none; }
867
+ slot[name='actions-mobile'] { display: contents; }
868
+ }
869
+
870
+ ::slotted([slot='search']),
871
+ ::slotted([slot='actions']),
872
+ ::slotted([slot='actions-desktop']),
873
+ ::slotted([slot='actions-mobile']) {
874
+ flex-shrink: 0;
875
+ }
876
+
835
877
  .utility {
836
878
  display: none;
837
879
  flex-wrap: nowrap;
@@ -844,6 +886,7 @@ var f = {
844
886
  display: flex;
845
887
  }
846
888
  }
889
+ :host([data-no-utility]) .utility,
847
890
  :host([data-collapsed]) .utility {
848
891
  display: none !important;
849
892
  }
@@ -1691,6 +1734,9 @@ var f = {
1691
1734
  get _tabsNav() {
1692
1735
  return this.renderRoot.querySelector(".tabs-nav");
1693
1736
  }
1737
+ get _customActions() {
1738
+ return [...this.renderRoot.querySelectorAll("slot")].filter((e) => d.has(e.name)).flatMap((e) => e.assignedElements({ flatten: !0 })).filter((e) => e instanceof HTMLElement);
1739
+ }
1694
1740
  _attachSlotObservers() {
1695
1741
  this._slotMo?.disconnect(), this._slotWatchers.forEach((e) => e.disconnect()), this._slotWatchers = [];
1696
1742
  let e = [
@@ -1714,6 +1760,7 @@ var f = {
1714
1760
  this._slotWatchers.forEach((e) => e.disconnect()), this._slotWatchers = [];
1715
1761
  let e = Array.from(this.children);
1716
1762
  for (let r of e) {
1763
+ if (d.has(r.getAttribute("slot") ?? "")) continue;
1717
1764
  let e = r.tagName.toLowerCase();
1718
1765
  if ((e === "scb-header-tab" || e === "scb-dropdown" || e === "scb-header-utility" || e === "scb-header-menu-item" || e === "scb-header-menu-group" || e === "scb-badge") && t(r), e === "scb-badge") {
1719
1766
  let e = r, i = new MutationObserver((e) => {
@@ -1827,11 +1874,13 @@ var f = {
1827
1874
  this._tabsCollapsed = e, this.toggleAttribute("data-tabs-collapsed", e), n && this.updateComplete.then(() => this._menuBtn?.focus());
1828
1875
  }
1829
1876
  _observeLayout() {
1877
+ if (!this._ro) return;
1830
1878
  let e = [
1831
1879
  this._top,
1832
1880
  this._tabsNav,
1833
1881
  this._tabsNav?.closest(".tabs-row"),
1834
- this._menuBtn
1882
+ this._menuBtn,
1883
+ ...this._customActions
1835
1884
  ].filter((e) => !!e);
1836
1885
  if (!(e.length === this._observedLayout.length && e.every((e, t) => e === this._observedLayout[t]))) {
1837
1886
  this._ro?.disconnect(), this._observedLayout = e;
@@ -1852,7 +1901,7 @@ var f = {
1852
1901
  }), this._ro = new ResizeObserver(() => this._scheduleMeasure()), this._observeLayout(), window.addEventListener("resize", this._onWindowResize, { passive: !0 });
1853
1902
  }
1854
1903
  updated(e) {
1855
- e.has("searchMax") && this.style.setProperty("--scb-header-search-max", this.searchMax ?? "380px"), e.has("searchMin") && this.style.setProperty("--scb-header-search-min", this.searchMin ?? "250px"), e.has("searchHeight") && (this.searchHeight && this.searchHeight.trim() ? this.style.setProperty("--scb-search-height", this.searchHeight.trim()) : this.style.removeProperty("--scb-search-height")), (e.has("logoWidth") || e.has("logoHeight") || e.has("logoAspectRatio")) && this._applyLogoSizing(), (e.has("spacing") || e.has("spacingTop") || e.has("spacingBottom")) && this._applySpacing(), (e.has("paddingInline") || e.has("paddingInlineExpanded")) && this._applyPaddingInline(), (e.has("banner") || e.has("bannerLabel")) && this._syncLandmarkAttributes(), (e.has("utilityItems") || e.has("_collapsed") || e.has("_tabsCollapsed") || e.has("_desktop") || e.has("_mobileSearchOpen") || e.has("tabs") || e.has("logoText") || e.has("logotypeText") || e.has("logoSrc") || e.has("logoWidth") || e.has("logoHeight") || e.has("logoAspectRatio") || e.has("activeTab") || e.has("_slotNavItems") || e.has("_slotUtils") || e.has("_slotMenu") || e.has("showDrawer") || e.has("alwaysShowMenuButton") || e.has("showSearch") || e.has("layoutPending") || e.has("searchMax") || e.has("searchMin") || e.has("paddingInline") || e.has("paddingInlineExpanded") || e.has("size")) && this.updateComplete.then(() => {
1904
+ e.has("searchMax") && this.style.setProperty("--scb-header-search-max", this.searchMax ?? "380px"), e.has("searchMin") && this.style.setProperty("--scb-header-search-min", this.searchMin ?? "250px"), e.has("searchHeight") && (this.searchHeight && this.searchHeight.trim() ? this.style.setProperty("--scb-search-height", this.searchHeight.trim()) : this.style.removeProperty("--scb-search-height")), (e.has("logoWidth") || e.has("logoHeight") || e.has("logoAspectRatio")) && this._applyLogoSizing(), (e.has("spacing") || e.has("spacingTop") || e.has("spacingBottom")) && this._applySpacing(), (e.has("paddingInline") || e.has("paddingInlineExpanded")) && this._applyPaddingInline(), (e.has("banner") || e.has("bannerLabel")) && this._syncLandmarkAttributes(), (e.has("utilityItems") || e.has("_collapsed") || e.has("_tabsCollapsed") || e.has("_desktop") || e.has("_mobileSearchOpen") || e.has("tabs") || e.has("logoText") || e.has("logotypeText") || e.has("logoSrc") || e.has("logoWidth") || e.has("logoHeight") || e.has("logoAspectRatio") || e.has("activeTab") || e.has("_slotNavItems") || e.has("_slotUtils") || e.has("_slotMenu") || e.has("_hasResponsiveActions") || e.has("showDrawer") || e.has("alwaysShowMenuButton") || e.has("showSearch") || e.has("layoutPending") || e.has("searchMax") || e.has("searchMin") || e.has("paddingInline") || e.has("paddingInlineExpanded") || e.has("size")) && this.updateComplete.then(() => {
1856
1905
  this._observeLayout(), this._scheduleMeasure();
1857
1906
  }), (e.has("showDrawer") || e.has("deferDrawer")) && this.showDrawer && !this.deferDrawer && this._ensureDrawerReady(), e.has("showSearch") && !this.showSearch && this._setMobileSearchOpen(!1), e.has("layoutPending") && !this.layoutPending && this.requestLayout(), (e.has("activeTab") || e.has("_slotNavItems") || e.has("tabs") || e.has("size")) && this.updateComplete.then(() => {
1858
1907
  this._syncDropdownTabs();
@@ -1867,7 +1916,7 @@ var f = {
1867
1916
  if (t) {
1868
1917
  if (/^\d+$/.test(t)) {
1869
1918
  let e = Math.max(0, Math.min(14, parseInt(t, 10)));
1870
- return `var(--spacing-${e}, ${d[e]}px)`;
1919
+ return `var(--spacing-${e}, ${f[e]}px)`;
1871
1920
  }
1872
1921
  return t;
1873
1922
  }
@@ -2127,6 +2176,7 @@ var f = {
2127
2176
  </div>
2128
2177
 
2129
2178
  <div class="actions">
2179
+ <slot name="search" @slotchange=${this._onActionsSlotChange}></slot>
2130
2180
  <nav class="utility" aria-label=${b}>
2131
2181
  ${t.map((e) => i`
2132
2182
  <a
@@ -2158,7 +2208,11 @@ var f = {
2158
2208
  <md-focus-ring aria-hidden="true"></md-focus-ring>
2159
2209
  </button>
2160
2210
  ` : a}
2161
- ${g ? this._renderMenuButton("", !0) : a}
2211
+ ${g && !this._hasResponsiveActions ? this._renderMenuButton("", !0) : a}
2212
+ <slot name="actions-desktop" @slotchange=${this._onActionsSlotChange}></slot>
2213
+ <slot name="actions" @slotchange=${this._onActionsSlotChange}></slot>
2214
+ <slot name="actions-mobile" @slotchange=${this._onActionsSlotChange}></slot>
2215
+ ${g && this._hasResponsiveActions ? this._renderMenuButton("", !0) : a}
2162
2216
  </div>
2163
2217
 
2164
2218
  ${this.showSearch && this._mobileSearchOpen ? i`
@@ -2313,175 +2367,175 @@ var f = {
2313
2367
  t([s({
2314
2368
  type: String,
2315
2369
  attribute: "max-width"
2316
- })], h.prototype, "maxWidth", void 0), t([s({
2370
+ })], g.prototype, "maxWidth", void 0), t([s({
2317
2371
  type: String,
2318
2372
  attribute: "padding-inline",
2319
2373
  reflect: !0
2320
- })], h.prototype, "paddingInline", void 0), t([s({
2374
+ })], g.prototype, "paddingInline", void 0), t([s({
2321
2375
  type: String,
2322
2376
  attribute: "padding-inline-expanded",
2323
2377
  reflect: !0
2324
- })], h.prototype, "paddingInlineExpanded", void 0), t([s({
2378
+ })], g.prototype, "paddingInlineExpanded", void 0), t([s({
2325
2379
  type: String,
2326
2380
  reflect: !0
2327
- })], h.prototype, "spacing", void 0), t([s({
2381
+ })], g.prototype, "spacing", void 0), t([s({
2328
2382
  type: String,
2329
2383
  attribute: "spacing-top",
2330
2384
  reflect: !0
2331
- })], h.prototype, "spacingTop", void 0), t([s({
2385
+ })], g.prototype, "spacingTop", void 0), t([s({
2332
2386
  type: String,
2333
2387
  attribute: "spacing-bottom",
2334
2388
  reflect: !0
2335
- })], h.prototype, "spacingBottom", void 0), t([s({
2389
+ })], g.prototype, "spacingBottom", void 0), t([s({
2336
2390
  type: String,
2337
2391
  reflect: !0,
2338
- converter: m
2339
- })], h.prototype, "size", void 0), t([s({
2392
+ converter: h
2393
+ })], g.prototype, "size", void 0), t([s({
2340
2394
  type: String,
2341
2395
  attribute: "logo-text"
2342
- })], h.prototype, "logoText", void 0), t([s({
2396
+ })], g.prototype, "logoText", void 0), t([s({
2343
2397
  type: String,
2344
2398
  attribute: "logotype-text"
2345
- })], h.prototype, "logotypeText", void 0), t([s({
2399
+ })], g.prototype, "logotypeText", void 0), t([s({
2346
2400
  type: String,
2347
2401
  attribute: "logo-alt"
2348
- })], h.prototype, "logoAlt", void 0), t([s({
2402
+ })], g.prototype, "logoAlt", void 0), t([s({
2349
2403
  type: String,
2350
2404
  attribute: "logo-href"
2351
- })], h.prototype, "logoHref", void 0), t([s({
2405
+ })], g.prototype, "logoHref", void 0), t([s({
2352
2406
  type: String,
2353
2407
  attribute: "logo-src"
2354
- })], h.prototype, "logoSrc", void 0), t([s({
2408
+ })], g.prototype, "logoSrc", void 0), t([s({
2355
2409
  type: String,
2356
2410
  attribute: "logo-width"
2357
- })], h.prototype, "logoWidth", void 0), t([s({
2411
+ })], g.prototype, "logoWidth", void 0), t([s({
2358
2412
  type: String,
2359
2413
  attribute: "logo-height"
2360
- })], h.prototype, "logoHeight", void 0), t([s({
2414
+ })], g.prototype, "logoHeight", void 0), t([s({
2361
2415
  type: String,
2362
2416
  attribute: "logo-aspect-ratio"
2363
- })], h.prototype, "logoAspectRatio", void 0), t([s({
2417
+ })], g.prototype, "logoAspectRatio", void 0), t([s({
2364
2418
  type: Boolean,
2365
2419
  attribute: "logo-invert-dm",
2366
2420
  reflect: !0,
2367
- converter: p
2368
- })], h.prototype, "logoInvertDm", void 0), t([s({
2421
+ converter: m
2422
+ })], g.prototype, "logoInvertDm", void 0), t([s({
2369
2423
  type: Boolean,
2370
2424
  reflect: !0
2371
- })], h.prototype, "banner", void 0), t([s({
2425
+ })], g.prototype, "banner", void 0), t([s({
2372
2426
  type: String,
2373
2427
  attribute: "banner-label"
2374
- })], h.prototype, "bannerLabel", void 0), t([s({
2428
+ })], g.prototype, "bannerLabel", void 0), t([s({
2375
2429
  type: Array,
2376
2430
  attribute: "tabs",
2377
- converter: h._JSON_ARRAY
2378
- })], h.prototype, "tabs", void 0), t([s({
2431
+ converter: g._JSON_ARRAY
2432
+ })], g.prototype, "tabs", void 0), t([s({
2379
2433
  type: Number,
2380
2434
  attribute: "active-tab",
2381
2435
  reflect: !0
2382
- })], h.prototype, "activeTab", void 0), t([s({
2436
+ })], g.prototype, "activeTab", void 0), t([s({
2383
2437
  type: Boolean,
2384
2438
  attribute: "reserve-tabs",
2385
2439
  reflect: !0,
2386
- converter: p
2387
- })], h.prototype, "reserveTabs", void 0), t([s({
2440
+ converter: m
2441
+ })], g.prototype, "reserveTabs", void 0), t([s({
2388
2442
  type: Number,
2389
2443
  attribute: "reserve-tabs-count"
2390
- })], h.prototype, "reserveTabsCount", void 0), t([s({
2444
+ })], g.prototype, "reserveTabsCount", void 0), t([s({
2391
2445
  type: String,
2392
2446
  attribute: "reserve-tabs-widths"
2393
- })], h.prototype, "reserveTabsWidths", void 0), t([s({
2447
+ })], g.prototype, "reserveTabsWidths", void 0), t([s({
2394
2448
  type: Boolean,
2395
2449
  attribute: "layout-pending",
2396
2450
  reflect: !0,
2397
- converter: p
2398
- })], h.prototype, "layoutPending", void 0), t([s({
2451
+ converter: m
2452
+ })], g.prototype, "layoutPending", void 0), t([s({
2399
2453
  type: Array,
2400
2454
  attribute: "utility-items",
2401
- converter: h._JSON_ARRAY
2402
- })], h.prototype, "utilityItems", void 0), t([s({
2455
+ converter: g._JSON_ARRAY
2456
+ })], g.prototype, "utilityItems", void 0), t([s({
2403
2457
  type: String,
2404
2458
  attribute: "search-placeholder"
2405
- })], h.prototype, "searchPlaceholder", void 0), t([s({
2459
+ })], g.prototype, "searchPlaceholder", void 0), t([s({
2406
2460
  type: String,
2407
2461
  attribute: "search-button-label"
2408
- })], h.prototype, "searchButtonLabel", void 0), t([s({
2462
+ })], g.prototype, "searchButtonLabel", void 0), t([s({
2409
2463
  type: String,
2410
2464
  attribute: "search-clear-label"
2411
- })], h.prototype, "searchClearLabel", void 0), t([s({
2465
+ })], g.prototype, "searchClearLabel", void 0), t([s({
2412
2466
  type: String,
2413
2467
  attribute: "search-close-label"
2414
- })], h.prototype, "searchCloseLabel", void 0), t([s({
2468
+ })], g.prototype, "searchCloseLabel", void 0), t([s({
2415
2469
  type: String,
2416
2470
  attribute: "menu-label"
2417
- })], h.prototype, "menuLabel", void 0), t([s({
2471
+ })], g.prototype, "menuLabel", void 0), t([s({
2418
2472
  type: String,
2419
2473
  attribute: "menu-button-label"
2420
- })], h.prototype, "menuButtonLabel", void 0), t([s({
2474
+ })], g.prototype, "menuButtonLabel", void 0), t([s({
2421
2475
  type: String,
2422
2476
  attribute: "menu-open-label"
2423
- })], h.prototype, "menuOpenLabel", void 0), t([s({
2477
+ })], g.prototype, "menuOpenLabel", void 0), t([s({
2424
2478
  type: String,
2425
2479
  attribute: "menu-sub-label"
2426
- })], h.prototype, "menuSubLabel", void 0), t([s({
2480
+ })], g.prototype, "menuSubLabel", void 0), t([s({
2427
2481
  type: String,
2428
2482
  attribute: "menu-section-label"
2429
- })], h.prototype, "menuSectionLabel", void 0), t([s({
2483
+ })], g.prototype, "menuSectionLabel", void 0), t([s({
2430
2484
  type: String,
2431
2485
  attribute: "menu-search-placeholder"
2432
- })], h.prototype, "menuSearchPlaceholder", void 0), t([s({
2486
+ })], g.prototype, "menuSearchPlaceholder", void 0), t([s({
2433
2487
  type: String,
2434
2488
  attribute: "utility-navigation-label"
2435
- })], h.prototype, "utilityNavigationLabel", void 0), t([s({
2489
+ })], g.prototype, "utilityNavigationLabel", void 0), t([s({
2436
2490
  type: String,
2437
2491
  attribute: "main-navigation-label"
2438
- })], h.prototype, "mainNavigationLabel", void 0), t([s({
2492
+ })], g.prototype, "mainNavigationLabel", void 0), t([s({
2439
2493
  type: Array,
2440
2494
  attribute: "menu-data",
2441
- converter: h._JSON_ARRAY
2442
- })], h.prototype, "menuData", void 0), t([s({
2495
+ converter: g._JSON_ARRAY
2496
+ })], g.prototype, "menuData", void 0), t([s({
2443
2497
  type: Boolean,
2444
2498
  attribute: "defer-drawer",
2445
2499
  reflect: !0,
2446
- converter: p
2447
- })], h.prototype, "deferDrawer", void 0), t([s({
2500
+ converter: m
2501
+ })], g.prototype, "deferDrawer", void 0), t([s({
2448
2502
  type: Boolean,
2449
2503
  attribute: "show-drawer",
2450
2504
  reflect: !0,
2451
- converter: f
2452
- })], h.prototype, "showDrawer", void 0), t([s({
2505
+ converter: p
2506
+ })], g.prototype, "showDrawer", void 0), t([s({
2453
2507
  type: Boolean,
2454
2508
  attribute: "always-show-menu-button",
2455
2509
  reflect: !0,
2456
- converter: p
2457
- })], h.prototype, "alwaysShowMenuButton", void 0), t([s({
2510
+ converter: m
2511
+ })], g.prototype, "alwaysShowMenuButton", void 0), t([s({
2458
2512
  type: Boolean,
2459
2513
  attribute: "show-search",
2460
2514
  reflect: !0,
2461
- converter: f
2462
- })], h.prototype, "showSearch", void 0), t([s({
2515
+ converter: p
2516
+ })], g.prototype, "showSearch", void 0), t([s({
2463
2517
  type: Boolean,
2464
2518
  attribute: "include-utility-in-menu",
2465
2519
  reflect: !0,
2466
- converter: p
2467
- })], h.prototype, "includeUtilityInMenu", void 0), t([s({
2520
+ converter: m
2521
+ })], g.prototype, "includeUtilityInMenu", void 0), t([s({
2468
2522
  type: Boolean,
2469
2523
  attribute: "drawer-overlay",
2470
2524
  reflect: !0,
2471
- converter: f
2472
- })], h.prototype, "drawerOverlay", void 0), t([s({
2525
+ converter: p
2526
+ })], g.prototype, "drawerOverlay", void 0), t([s({
2473
2527
  type: String,
2474
2528
  attribute: "search-max"
2475
- })], h.prototype, "searchMax", void 0), t([s({
2529
+ })], g.prototype, "searchMax", void 0), t([s({
2476
2530
  type: String,
2477
2531
  attribute: "search-min"
2478
- })], h.prototype, "searchMin", void 0), t([s({
2532
+ })], g.prototype, "searchMin", void 0), t([s({
2479
2533
  type: String,
2480
2534
  attribute: "search-height"
2481
- })], h.prototype, "searchHeight", void 0), t([s({
2535
+ })], g.prototype, "searchHeight", void 0), t([s({
2482
2536
  type: String,
2483
2537
  attribute: "search-text",
2484
2538
  reflect: !0
2485
- })], h.prototype, "searchText", void 0), t([c()], h.prototype, "_drawerId", void 0), t([c()], h.prototype, "_menuExpanded", void 0), t([c()], h.prototype, "_searchId", void 0), t([c()], h.prototype, "_drawerReady", void 0), t([c()], h.prototype, "_mobileSearchOpen", void 0), t([c()], h.prototype, "_slotNavItems", void 0), t([c()], h.prototype, "_slotUtils", void 0), t([c()], h.prototype, "_slotMenu", void 0), t([c()], h.prototype, "_collapsed", void 0), t([c()], h.prototype, "_tabsCollapsed", void 0), t([c()], h.prototype, "_desktop", void 0), t([c()], h.prototype, "_hideLogoText", void 0), h = l = t([o("scb-header")], h);
2539
+ })], g.prototype, "searchText", void 0), t([c()], g.prototype, "_drawerId", void 0), t([c()], g.prototype, "_menuExpanded", void 0), t([c()], g.prototype, "_searchId", void 0), t([c()], g.prototype, "_drawerReady", void 0), t([c()], g.prototype, "_mobileSearchOpen", void 0), t([c()], g.prototype, "_slotNavItems", void 0), t([c()], g.prototype, "_slotUtils", void 0), t([c()], g.prototype, "_slotMenu", void 0), t([c()], g.prototype, "_hasResponsiveActions", void 0), t([c()], g.prototype, "_collapsed", void 0), t([c()], g.prototype, "_tabsCollapsed", void 0), t([c()], g.prototype, "_desktop", void 0), t([c()], g.prototype, "_hideLogoText", void 0), g = l = t([o("scb-header")], g);
2486
2540
  //#endregion
2487
- export { h as ScbHeader };
2541
+ export { g as ScbHeader };