@getflip/swirl-components 0.413.1 → 0.414.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.
@@ -5,7 +5,7 @@ import { d as defineCustomElement$4 } from './swirl-button2.js';
5
5
  import { d as defineCustomElement$3 } from './swirl-heading2.js';
6
6
  import { d as defineCustomElement$2 } from './swirl-text2.js';
7
7
 
8
- const swirlConsoleLayoutCss = ":host{display:block;width:100%;height:100vh;--console-footer-height:4.25rem;--console-app-bar-height:3.5rem;--console-sidebar-width:18.5rem}:host *{box-sizing:border-box}.console-layout{display:grid;width:100%;height:100%;grid-template-columns:1fr;grid-template-areas:\"main\"}@media (min-width: 768px){.console-layout{grid-template-columns:var(--console-sidebar-width) 1fr;grid-template-areas:\"sidebar main\"}}@media (max-width: 767px){.console-layout--sidebar-active .console-layout__sidebar{transform:translate3d(0, 0, 0);box-shadow:0 0 1rem rgba(0, 0, 0, 0.06)}}@media (min-width: 768px){.console-layout--empty-app-bar .console-layout__main{grid-template-areas:\"content\";grid-template-rows:1fr}}@media (min-width: 768px){.console-layout--empty-app-bar .console-layout__app-bar{display:none}}@media (min-width: 768px){.console-layout--empty-app-bar.console-layout--has-footer .console-layout__main{grid-template-areas:\"content\"\n \"footer\";grid-template-rows:1fr -webkit-min-content;grid-template-rows:1fr min-content}}.console-layout__sidebar{position:fixed;z-index:var(--s-z-30);top:4rem;bottom:0;left:0;display:grid;overflow-x:hidden;overflow-y:auto;width:100%;max-width:20rem;border-right:var(--s-border-width-default) solid var(--s-border-default);transition:transform 0.15s, box-shadow 0.15s;transform:translate3d(-100%, 0, 0);grid-template-rows:auto 1fr -webkit-min-content;grid-template-rows:auto 1fr min-content;grid-template-areas:\"header\"\n \"navigation\"\n \"user\"}@media (prefers-reduced-motion){.console-layout__sidebar{transition:none}}@media (min-width: 768px){.console-layout__sidebar{position:static;top:auto;left:auto;max-width:none;height:100%;transform:none;box-shadow:none;grid-area:sidebar}}.console-layout__header{overflow:hidden;min-width:0;padding:var(--s-space-20) var(--s-space-24);background-color:var(--s-background-default);grid-area:header}.console-layout__navigation{overflow-x:hidden;overflow-y:auto;padding-top:var(--s-space-8);padding-bottom:var(--s-space-8);background-color:var(--s-background-default);grid-area:navigation}.console-layout__user{overflow:hidden;padding:var(--s-space-16) var(--s-space-24);border-top:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default);grid-area:user;min-height:var(--console-footer-height);box-sizing:border-box}.console-layout__main{display:grid;overflow:hidden;width:100%;height:100%;grid-area:main;gap:var(--s-border-width-default);grid-template-rows:var(--console-app-bar-height) 1fr;grid-template-areas:\"app-bar\"\n \"content\"}.console-layout--has-footer .console-layout__main{grid-template-rows:var(--console-app-bar-height) 1fr -webkit-min-content;grid-template-rows:var(--console-app-bar-height) 1fr min-content;grid-template-areas:\"app-bar\"\n \"content\"\n \"footer\"}.console-layout__app-bar{position:sticky;z-index:var(--s-z-30);top:0;display:flex;min-width:0;padding-right:var(--s-space-16);padding-left:var(--s-space-16);align-items:center;border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default);gap:var(--s-space-12);grid-area:app-bar}@media (min-width: 768px){.console-layout__app-bar{padding-right:2.5rem;padding-left:2.5rem}}@media (min-width: 768px){.console-layout__mobile-navigation-button{display:none}}.console-layout__app-name{min-width:0;flex-grow:1}.console-layout__app-name .heading{overflow:hidden;font-weight:var(--s-font-weight-regular);white-space:nowrap;text-overflow:ellipsis}.console-layout__help-button{flex-shrink:0}.console-layout__content{overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;display:flex;min-width:0;padding:0 var(--s-space-16);background-color:var(--s-background-default);flex-direction:column;grid-area:content}@media (min-width: 768px){.console-layout__content{padding:0 2.5rem}}.console-layout__content-container{display:flex;flex-direction:column;align-items:center;height:100%;width:100%}.console-layout__integration{flex-grow:1;padding-bottom:var(--s-space-16)}@media (min-width: 768px){.console-layout__integration{padding-bottom:2.5rem}}.console-layout__integration{width:100%}.console-layout__logo{display:flex;min-width:0;align-items:center;gap:var(--s-space-12)}.console-layout__logo-mark{flex-shrink:0}.console-layout__logo-text{min-width:0}.console-layout__logo-text::part(text){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.console-layout__content-header{display:flex;margin-bottom:var(--s-space-24);flex-shrink:0;gap:var(--s-space-16);padding-top:var(--s-space-16)}@media (min-width: 768px){.console-layout__content-header{padding-top:2.5rem}}.console-layout__content-header{width:100%}.console-layout--has-custom-app-bar .console-layout__content-header{padding-top:var(--s-space-16)}.console-layout__back-button{position:relative;top:calc(-1 * var(--s-space-2));flex-shrink:0}.console-layout__heading-container{flex-grow:1}.console-layout__subheading{margin-top:var(--s-space-8)}.console-layout__content-header-tools{display:flex;flex-shrink:0}.console-layout__footer{position:sticky;bottom:0;z-index:var(--s-z-20);display:flex;flex-shrink:0;min-width:0;border-top:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default);grid-area:footer;width:100%;min-height:var(--console-footer-height);box-sizing:border-box}.console-layout__app-bar--custom{display:flex;min-width:0;align-items:center;padding:0;border-bottom:var(--s-border-width-default) solid transparent;background-color:var(--s-background-default)}.console-layout--main-scrollable:not(.console-layout--main-scrolled-to-top) .console-layout__app-bar--custom{border-bottom-color:var(--s-border-default)}.console-layout:not(.console-layout--has-custom-app-bar) .console-layout__app-bar--custom{display:none}.console-layout:not(.console-layout--has-footer) .console-layout__footer{display:none}.console-layout--has-custom-app-bar .console-layout__app-bar:not(.console-layout__app-bar--custom){display:none}";
8
+ const swirlConsoleLayoutCss = ":host{display:block;width:100%;height:100vh;--console-footer-height:4.25rem;--console-app-bar-height:3.5rem;--console-sidebar-width:18.5rem}:host *{box-sizing:border-box}.console-layout{display:grid;width:100%;height:100%;grid-template-columns:1fr;grid-template-areas:\"main\"}@media (min-width: 768px){.console-layout{grid-template-columns:var(--console-sidebar-width) 1fr;grid-template-areas:\"sidebar main\"}}@media (max-width: 767px){.console-layout--sidebar-active .console-layout__sidebar{transform:translate3d(0, 0, 0);box-shadow:0 0 1rem rgba(0, 0, 0, 0.06)}}@media (min-width: 768px){.console-layout--empty-app-bar .console-layout__main{grid-template-areas:\"content\";grid-template-rows:1fr}}@media (min-width: 768px){.console-layout--empty-app-bar .console-layout__app-bar{display:none}}@media (min-width: 768px){.console-layout--empty-app-bar.console-layout--has-footer .console-layout__main{grid-template-areas:\"content\"\n \"footer\";grid-template-rows:1fr -webkit-min-content;grid-template-rows:1fr min-content}}.console-layout__sidebar{position:fixed;z-index:var(--s-z-30);top:4rem;bottom:0;left:0;display:grid;overflow-x:hidden;overflow-y:auto;width:100%;max-width:20rem;border-right:var(--s-border-width-default) solid var(--s-border-default);transition:transform 0.15s, box-shadow 0.15s;transform:translate3d(-100%, 0, 0);grid-template-rows:auto 1fr -webkit-min-content;grid-template-rows:auto 1fr min-content;grid-template-areas:\"header\"\n \"navigation\"\n \"user\"}@media (prefers-reduced-motion){.console-layout__sidebar{transition:none}}@media (min-width: 768px){.console-layout__sidebar{position:static;top:auto;left:auto;max-width:none;height:100%;transform:none;box-shadow:none;grid-area:sidebar}}.console-layout__header{overflow:hidden;min-width:0;padding:var(--s-space-20) var(--s-space-24);background-color:var(--s-background-default);grid-area:header}.console-layout__navigation{overflow-x:hidden;overflow-y:auto;padding-top:var(--s-space-8);padding-bottom:var(--s-space-8);background-color:var(--s-background-default);grid-area:navigation}.console-layout__user{overflow:hidden;padding:var(--s-space-16) var(--s-space-24);border-top:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default);grid-area:user;min-height:var(--console-footer-height);box-sizing:border-box}.console-layout__main{display:grid;overflow:hidden;width:100%;height:100%;grid-area:main;gap:var(--s-border-width-default);grid-template-rows:var(--console-app-bar-height) 1fr;grid-template-areas:\"app-bar\"\n \"content\"}.console-layout--has-footer .console-layout__main{grid-template-rows:var(--console-app-bar-height) 1fr -webkit-min-content;grid-template-rows:var(--console-app-bar-height) 1fr min-content;grid-template-areas:\"app-bar\"\n \"content\"\n \"footer\"}.console-layout__app-bar{position:sticky;z-index:var(--s-z-30);top:0;display:flex;min-width:0;padding-right:var(--s-space-16);padding-left:var(--s-space-16);align-items:center;border-bottom:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default);gap:var(--s-space-12);grid-area:app-bar}@media (min-width: 768px){.console-layout__app-bar{padding-right:2.5rem;padding-left:2.5rem}}@media (min-width: 768px){.console-layout__mobile-navigation-button{display:none}}.console-layout__app-name{min-width:0;flex-grow:1}.console-layout__app-name .heading{overflow:hidden;font-weight:var(--s-font-weight-regular);white-space:nowrap;text-overflow:ellipsis}.console-layout__help-button{flex-shrink:0}.console-layout__content{overflow-x:hidden;overflow-y:auto;scrollbar-gutter:stable;display:flex;min-width:0;padding:0 var(--s-space-16);background-color:var(--s-background-default);flex-direction:column;grid-area:content}@media (min-width: 768px){.console-layout__content{padding:0 2.5rem}}.console-layout__content-container{display:flex;flex-direction:column;align-items:center;height:100%;width:100%}.console-layout__integration{flex-grow:1;padding-bottom:var(--s-space-16)}@media (min-width: 768px){.console-layout__integration{padding-bottom:2.5rem}}.console-layout__integration{width:100%}.console-layout__logo{display:flex;min-width:0;align-items:center;gap:var(--s-space-12)}.console-layout__logo-mark{flex-shrink:0}.console-layout__logo-text{min-width:0}.console-layout__logo-text::part(text){overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.console-layout__content-header{display:flex;margin-bottom:var(--s-space-24);flex-shrink:0;gap:var(--s-space-16);padding-top:var(--s-space-16)}@media (min-width: 768px){.console-layout__content-header{padding-top:2.5rem}}.console-layout__content-header{width:100%}.console-layout--has-custom-app-bar .console-layout__content-header{padding-top:var(--s-space-16)}.console-layout__back-button{position:relative;top:calc(-1 * var(--s-space-2));flex-shrink:0}.console-layout__heading-container{flex-grow:1}.console-layout__subheading{margin-top:var(--s-space-8)}.console-layout__content-header-tools{display:flex;flex-shrink:0}.console-layout__footer{position:sticky;bottom:0;z-index:var(--s-z-20);display:flex;flex-shrink:0;min-width:0;border-top:var(--s-border-width-default) solid var(--s-border-default);background-color:var(--s-background-default);grid-area:footer;width:100%;min-height:var(--console-footer-height);box-sizing:border-box}.console-layout__app-bar--custom{display:flex;min-width:0;align-items:center;padding:0;border-bottom:var(--s-border-width-default) solid transparent;background-color:var(--s-background-default)}.console-layout--main-scrollable:not(.console-layout--main-scrolled-to-top) .console-layout__app-bar--custom{border-bottom-color:var(--s-border-default)}.console-layout:not(.console-layout--has-custom-app-bar) .console-layout__app-bar--custom{display:none}.console-layout:not(.console-layout--has-footer) .console-layout__footer{display:none}.console-layout--has-custom-app-bar .console-layout__app-bar:not(.console-layout__app-bar--custom){display:none}.console-layout--hide-content-header .console-layout__content{padding:0;overflow:hidden;scrollbar-gutter:auto}.console-layout--hide-content-header .console-layout__integration{padding-bottom:0}";
9
9
 
10
10
  const SwirlConsoleLayout$1 = /*@__PURE__*/ proxyCustomElement(class SwirlConsoleLayout extends HTMLElement {
11
11
  constructor() {
@@ -157,12 +157,13 @@ const SwirlConsoleLayout$1 = /*@__PURE__*/ proxyCustomElement(class SwirlConsole
157
157
  "console-layout--main-scrollable": this.contentScrollState.scrollable,
158
158
  "console-layout--main-scrolled-to-top": this.contentScrollState.scrolledToTop,
159
159
  "console-layout--main-scrolled-to-bottom": this.contentScrollState.scrolledToBottom,
160
+ "console-layout--hide-content-header": this.hideContentHeader,
160
161
  });
161
- return (h(Host, { key: '8d004fe7e2fe42c85089729d3b4d8f51a0f9e4f8' }, h("div", { key: 'abafebd8d8527e75551a5a51bbece3726e960fb5', class: className, onClick: this.onClick, onKeyDown: this.onKeyDown }, h("header", { key: '1919856966c4e29a4a4e95ec5cb069155b59b1b7', "aria-hidden": String(!this.sidebarActive), class: "console-layout__sidebar", ref: (el) => (this.sidebarEl = el) }, h("div", { key: 'ab5c4e4d9721c2184318c060b89beb96900e015d', class: "console-layout__header" }, h("div", { key: '7a0d8d6f5059d22ecf47073eca35713ccc34dffe', class: "console-layout__logo" }, h("svg", { key: 'c1176fa3db3bca85077139341243c579242f2fa5', class: "console-layout__logo-mark", fill: "none", height: "26", viewBox: "0 0 16 26", width: "16", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '5fa938fe20f851ce772532a403e25822426c5688', d: "M0.624238 14.0705C0.326496 13.5353 0.118077 12.9406 0.0287543 12.3161C-0.0307941 11.662 -0.0010199 11.0375 0.147851 10.4428C0.296722 9.84813 0.594464 9.25343 0.951754 8.77767C1.33882 8.27217 1.78543 7.85588 2.35114 7.55853L14.6181 0.362671C14.9159 0.8979 15.1243 1.4926 15.2136 2.11703C15.3029 2.74147 15.2434 3.3659 15.0945 3.99034C14.9456 4.58504 14.6479 5.17974 14.2906 5.6555C13.9035 6.16099 13.4569 6.57728 12.8912 6.87463L0.624238 14.0705Z", fill: "#145AF5" }), h("path", { key: 'f2ed6b5dbe39c1d38ab36b26bf87de19f88c1f65', d: "M3.69214 21.4743C3.3944 20.9391 3.18598 20.3444 3.09666 19.72C3.00733 19.0956 3.06688 18.4711 3.21575 17.8467C3.36462 17.252 3.66237 16.6573 4.01966 16.1815C4.40672 15.676 4.85333 15.2597 5.41904 14.9624L12.2076 10.9779C12.5053 11.5131 12.7137 12.1078 12.803 12.7323C12.8924 13.3567 12.8328 13.9811 12.6839 14.6056C12.5351 15.2003 12.2373 15.795 11.88 16.2707C11.493 16.7762 11.0464 17.1925 10.4807 17.4899L3.69214 21.4743Z", fill: "#145AF5" }), h("path", { key: 'f45fd7feea3975c68930209d3113f6fe998f5444', d: "M3.69141 21.4739L7.77047 19.0951C8.39573 20.1953 8.5446 21.5036 8.24686 22.7228C7.91934 23.9419 7.14521 24.9826 6.04357 25.6368L3.69141 21.4739Z", fill: "#80A8F4" }), h("path", { key: '4047143f4126bfff4de327f422849d3bbf15db77', d: "M12.2072 10.9785L7.32419 10.1459L0.625 14.0709L5.38887 14.9629L12.2072 10.9785Z", fill: "#80A8F4" })), h("swirl-text", { key: 'b9acf5cd8d33d1f5f548a6a1ed5c5cce8c7afbd6', class: "console-layout__logo-text", weight: "medium" }, this.logoText))), h("nav", { key: '97cc7b84be12ca2eb7f6795be0656ece8e51a8ef', "aria-label": this.navigationLabel, class: "console-layout__navigation" }, h("slot", { key: '435e4b5c5132a861dcf052140d31ecb29b7fdef0', name: "navigation" })), h("div", { key: '9b24bf655cf317b3d8dd3400856e9eaba7341c46', class: "console-layout__user" }, h("slot", { key: '84bfe304091b7a170c6dbbc94cdf3d6489b11ff8', name: "user" }))), h("main", { key: 'a1b1f4efd178fdc003712a3205216cc39e79fea7', "aria-labelledby": Boolean(this.appName) ? "app-name" : undefined, class: "console-layout__main" }, h("header", { key: '6eec7be211fd4daa5d481ce9eb3e754b0ff0b578', class: "console-layout__app-bar console-layout__app-bar--custom" }, h("slot", { key: '2e6f39a73ecf33fb7faf369a5f34ce602b553438', name: "app-bar", onSlotchange: this.updateCustomAppBarStatus })), h("header", { key: 'df812a0f303ffe75f88ef441b6451b2ae1271845', class: "console-layout__app-bar" }, h("span", { key: '04a5a5efb236ab71bfff32c89f44de362d12f783', class: "console-layout__mobile-navigation-button" }, h("swirl-button", { key: '3be8b063281f5f819b50fa0be0cb54f5f9ef9b1f', swirlAriaExpanded: String(this.sidebarActive), hideLabel: true, icon: this.sidebarActive
162
+ return (h(Host, { key: '4815fb5e801fe8a6e6b0c822dc2368904bf2dc8b' }, h("div", { key: '6159ff22d25c7d27a677e6d67a3f8971016b5ef4', class: className, onClick: this.onClick, onKeyDown: this.onKeyDown }, h("header", { key: 'baefa5ac4861ba8363a46b9c64b95cca3479ebc1', "aria-hidden": String(!this.sidebarActive), class: "console-layout__sidebar", ref: (el) => (this.sidebarEl = el) }, h("div", { key: 'd45a7e304e2013b9c134fab4fefd5380ab20de9a', class: "console-layout__header" }, h("div", { key: '3063e9bd8df891002fdf043b55407fce59a0c901', class: "console-layout__logo" }, h("svg", { key: '41f42776a3a3d1d88889a2fa108814fd660ace35', class: "console-layout__logo-mark", fill: "none", height: "26", viewBox: "0 0 16 26", width: "16", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'af24345a81f147ab75d8a20fd528dde813914352', d: "M0.624238 14.0705C0.326496 13.5353 0.118077 12.9406 0.0287543 12.3161C-0.0307941 11.662 -0.0010199 11.0375 0.147851 10.4428C0.296722 9.84813 0.594464 9.25343 0.951754 8.77767C1.33882 8.27217 1.78543 7.85588 2.35114 7.55853L14.6181 0.362671C14.9159 0.8979 15.1243 1.4926 15.2136 2.11703C15.3029 2.74147 15.2434 3.3659 15.0945 3.99034C14.9456 4.58504 14.6479 5.17974 14.2906 5.6555C13.9035 6.16099 13.4569 6.57728 12.8912 6.87463L0.624238 14.0705Z", fill: "#145AF5" }), h("path", { key: 'fa7003b487a843eafd643d786ca4e9a66967ee1f', d: "M3.69214 21.4743C3.3944 20.9391 3.18598 20.3444 3.09666 19.72C3.00733 19.0956 3.06688 18.4711 3.21575 17.8467C3.36462 17.252 3.66237 16.6573 4.01966 16.1815C4.40672 15.676 4.85333 15.2597 5.41904 14.9624L12.2076 10.9779C12.5053 11.5131 12.7137 12.1078 12.803 12.7323C12.8924 13.3567 12.8328 13.9811 12.6839 14.6056C12.5351 15.2003 12.2373 15.795 11.88 16.2707C11.493 16.7762 11.0464 17.1925 10.4807 17.4899L3.69214 21.4743Z", fill: "#145AF5" }), h("path", { key: '14d9fe03db375d378a6a4db9c6b375ae55fdc03c', d: "M3.69141 21.4739L7.77047 19.0951C8.39573 20.1953 8.5446 21.5036 8.24686 22.7228C7.91934 23.9419 7.14521 24.9826 6.04357 25.6368L3.69141 21.4739Z", fill: "#80A8F4" }), h("path", { key: 'b903958362f3d3fa7f72d37fc1844bf9e4d7559b', d: "M12.2072 10.9785L7.32419 10.1459L0.625 14.0709L5.38887 14.9629L12.2072 10.9785Z", fill: "#80A8F4" })), h("swirl-text", { key: 'b7f9690de23744e1dcc81f53acf97236a8362e75', class: "console-layout__logo-text", weight: "medium" }, this.logoText))), h("nav", { key: 'a475177cc1f77ce548e3138f8ee6a202545b72cf', "aria-label": this.navigationLabel, class: "console-layout__navigation" }, h("slot", { key: 'e9ce193270fe8193733b208f889cc788b9a277c5', name: "navigation" })), h("div", { key: '12584d4dc12ff36e0ecd0d853aace0936794790f', class: "console-layout__user" }, h("slot", { key: 'c7db2cbc4b349a9598f97979beeec2e7e61cd33d', name: "user" }))), h("main", { key: '2b48c26ec129def46e1cc3f3be7151fb863a8113', "aria-labelledby": Boolean(this.appName) ? "app-name" : undefined, class: "console-layout__main" }, h("header", { key: 'cb481e40c801b8c42967f35de8400905ded5a70f', class: "console-layout__app-bar console-layout__app-bar--custom" }, h("slot", { key: '7fdb1d5bd16e7b1d64ae6db7a910490e41b86866', name: "app-bar", onSlotchange: this.updateCustomAppBarStatus })), h("header", { key: '36e691514c17442d18ec856cc42934594cc8c939', class: "console-layout__app-bar" }, h("span", { key: 'b1f0bc0fe2770791d5a0b8136869d91c92161743', class: "console-layout__mobile-navigation-button" }, h("swirl-button", { key: '22871bc55035291e21878ed88b42e813a7224f89', swirlAriaExpanded: String(this.sidebarActive), hideLabel: true, icon: this.sidebarActive
162
163
  ? "<swirl-icon-close></swirl-icon-close>"
163
164
  : "<swirl-icon-menu></swirl-icon-menu>", label: this.sidebarActive
164
165
  ? this.hideNavigationButtonLabel
165
- : this.showNavigationButtonLabel, onClick: this.onMobileNavigationToggleClick })), h("div", { key: '24d77cffd6e471658338c3298f768da54bb569de', class: "console-layout__app-name" }, this.appName && (h("swirl-heading", { key: 'cc3ab97189a496de330a399815818ffcddfe9b93', as: "h1", headingId: "app-name", level: 4, text: this.appName }))), this.showHelpButton && (h("swirl-button", { key: '01f03ceaa32fcfb931d84f7d64b93fd7d8713dd1', class: "console-layout__help-button", hideLabel: true, icon: "<swirl-icon-help></swirl-icon-help>", label: this.helpButonLabel, onClick: this.onHelpButtonClick }))), h("section", { key: 'adc509af3db891d725d7fa87f464d3b2298952ae', "aria-labelledby": "heading", class: "console-layout__content", onScroll: this.onMainScroll, ref: (el) => (this.contentEl = el) }, h("div", { key: '0a9ee92b46392706252bce22f185f06c3faa4418', class: "console-layout__content-container" }, h("header", { key: 'fbf86b4e422c513004f8d9d742c1f861b81507fd', class: "console-layout__content-header", style: contentStyles }, this.showBackButton && (h("swirl-button", { key: 'b4c72f3e082c87b35d1c5ecbdf3061d91070c321', class: "console-layout__back-button", hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.backButonLabel, onClick: this.onBackButtonClick })), Boolean(this.heading) && (h("div", { key: '4919cc42907921ec5cb2a58852189c9263b7bf03', class: "console-layout__heading-container" }, h("swirl-heading", { key: '6255a133d1ae50e02352798dce6d92e63eefaf7f', as: Boolean(this.appName) ? "h2" : "h1", class: "console-layout__heading", headingId: "heading", level: 1, text: this.heading }), this.subheading && (h("swirl-text", { key: 'c06826b9755a8fce7a1c4b0386cb89a09250169f', class: "console-layout__subheading", color: "subdued" }, this.subheading)))), !Boolean(this.heading) && (h("div", { key: '11071dea0eb6317a1e2952e4da8b286c9eeaa6ef', class: "console-layout__heading-container" }, h("slot", { key: 'aa1b601fcdd866c6c7ac9893f374b7d1c55b4821', name: "heading" }))), h("div", { key: 'e4d52f5758bc2fb6d1e3e8c36ad1c859f0f7e785', class: "console-layout__content-header-tools" }, h("slot", { key: '594beee60a48200bb116f7c9c0b227a2ef620db3', name: "content-header-tools" }))), h("div", { key: '3f3932e747db6336d040ff4a0756d229d38d300a', class: "console-layout__integration", style: contentStyles }, h("slot", { key: '4fbffd9f024054325edf730d208cfea231e2e9b5', name: "content" })))), h("footer", { key: '0fcf2a6ead14a3d73ed3292aa3e22cb634847bb7', class: "console-layout__footer" }, h("slot", { key: '1e8d14a037a0576c2694337bf6f3973953c9930b', name: "footer", onSlotchange: this.updateFooterStatus })), h("div", { key: '80c216cc3984b3741f5f1bcd87887f668e78dc40', class: "console-layout__overlays" }, h("slot", { key: '0992e8d1efccab72d5a717a4504d3bd7bef94ac4', name: "overlays" }))))));
166
+ : this.showNavigationButtonLabel, onClick: this.onMobileNavigationToggleClick })), h("div", { key: '36fdc660f38123feeb8b0028d856988d3c5441e5', class: "console-layout__app-name" }, this.appName && (h("swirl-heading", { key: '17a56f9da94065e344b1b6b8ffd84b82c6dff7cb', as: "h1", headingId: "app-name", level: 4, text: this.appName }))), this.showHelpButton && (h("swirl-button", { key: '328cd8b96c1559d3aaf520715e52089bfdcb8b44', class: "console-layout__help-button", hideLabel: true, icon: "<swirl-icon-help></swirl-icon-help>", label: this.helpButonLabel, onClick: this.onHelpButtonClick }))), h("section", { key: '19486de9997b5daf9af31a25a8885c86329cdb46', "aria-labelledby": "heading", class: "console-layout__content", onScroll: this.onMainScroll, ref: (el) => (this.contentEl = el) }, h("div", { key: '12d6c46a62957ed848c7894a68f4b1e0824b0b9e', class: "console-layout__content-container" }, !this.hideContentHeader && (h("header", { key: 'cc4cc44ca37cb973521feca0ccf4236f0a5d6607', class: "console-layout__content-header", style: contentStyles }, this.showBackButton && (h("swirl-button", { key: 'f27f8fc2d149f4e4587f4a755b4023f60136df2a', class: "console-layout__back-button", hideLabel: true, icon: "<swirl-icon-arrow-back></swirl-icon-arrow-back>", label: this.backButonLabel, onClick: this.onBackButtonClick })), Boolean(this.heading) && (h("div", { key: 'd76d8b57036bc3105565ede67dc9ee84fb719992', class: "console-layout__heading-container" }, h("swirl-heading", { key: '1dc1bd897ae597bf67fc31154711632393bca99b', as: Boolean(this.appName) ? "h2" : "h1", class: "console-layout__heading", headingId: "heading", level: 1, text: this.heading }), this.subheading && (h("swirl-text", { key: '2e405156ab5fe2332064050248ef4de2e0b3c1b7', class: "console-layout__subheading", color: "subdued" }, this.subheading)))), !Boolean(this.heading) && (h("div", { key: 'e1304c66641fe4b12289ea8e34f0ea3e305360f0', class: "console-layout__heading-container" }, h("slot", { key: '79c27ac40d642391776704ddde0b5823537fe3b1', name: "heading" }))), h("div", { key: 'f3ab1fc15a49bec24c74d934bc244c29eb681ff9', class: "console-layout__content-header-tools" }, h("slot", { key: 'cf9640f2b11289b98618397046d87ecfb09da321', name: "content-header-tools" })))), h("div", { key: 'f2b7b295a028120ea5d9bd971e0078e957a6ff48', class: "console-layout__integration", style: contentStyles }, h("slot", { key: '0a48de530204d697420fc83e0e0665abe9bcd55d', name: "content" })))), h("footer", { key: '19f61a51b65406ddf246726467add2e0b9fdbe8c', class: "console-layout__footer" }, h("slot", { key: '5d7b06005008d041669ebac4a11b2d8816365edf', name: "footer", onSlotchange: this.updateFooterStatus })), h("div", { key: '62c51f28ff4035296904dfac3a3f7ca01ce20dff', class: "console-layout__overlays" }, h("slot", { key: 'ae36884ab5fa186a7113ea509b8629c78d50c809', name: "overlays" }))))));
166
167
  }
167
168
  get el() { return this; }
168
169
  static get style() { return swirlConsoleLayoutCss; }
@@ -179,6 +180,7 @@ const SwirlConsoleLayout$1 = /*@__PURE__*/ proxyCustomElement(class SwirlConsole
179
180
  "showHelpButton": [4, "show-help-button"],
180
181
  "showNavigationButtonLabel": [1, "show-navigation-button-label"],
181
182
  "subheading": [1],
183
+ "hideContentHeader": [4, "hide-content-header"],
182
184
  "sidebarActive": [32],
183
185
  "contentScrollState": [32],
184
186
  "hasCustomAppBar": [32],
@@ -193,6 +193,13 @@ const SwirlDateInput$1 = /*@__PURE__*/ proxyCustomElement(class SwirlDateInput e
193
193
  return newString;
194
194
  },
195
195
  });
196
+ // Listen for when the mask is cleared to reset the value
197
+ this.mask.on("accept", () => {
198
+ if (this.mask.value === "") {
199
+ this.value = "";
200
+ this.valueChange.emit("");
201
+ }
202
+ });
196
203
  this.updateValue();
197
204
  }
198
205
  updateValue() {
@@ -219,7 +226,7 @@ const SwirlDateInput$1 = /*@__PURE__*/ proxyCustomElement(class SwirlDateInput e
219
226
  const className = classNames("date-input", {
220
227
  "date-input--inline": this.inline,
221
228
  });
222
- return (h(Host, { key: '6aa51d90858ac6c8859a87faf8deb5763079ec64' }, h("div", { key: 'e1e14f023fdd49bec8b2f4ce6ade2eba141fdb4b', class: className }, h("input", { key: '6c128e01c25dbd186dd493907f40a15e4fca3e6b', "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-invalid": ariaInvalid, autoFocus: this.autoFocus, class: "date-input__input", disabled: this.disabled, readonly: this.isInPickOnlyMode || this.readonly, id: this.id, inputmode: "numeric", onClick: this.onClick, onMouseDown: this.onMouseDown, onFocus: this.onFocus, onBlur: this.onBlur, placeholder: this.placeholder, ref: (el) => (this.inputEl = el), required: this.required, type: "text" }), !this.readonly && (h("swirl-popover-trigger", { key: 'bb75ffcb88e00ef6ff2e097b7dfe64d0477425ab', swirlPopover: `popover-${this.id}` }, h("button", { key: '1114e3727ac36d55b3f4a5c70cb799fd54e2d2e6', "aria-label": this.datePickerTriggerLabel, class: "date-input__date-picker-button", disabled: this.disabled, type: "button" }, h("swirl-icon-today", { key: 'a3c9866bc901772f0b15cc21f67f66f641241796', size: this.iconSize }))))), !(this.disabled || this.readonly) && (h("swirl-popover", { key: '7c2404322d5948db2439f9abca6266700141d586', animation: "scale-in-y", class: "date-input__date-picker-popover", id: `popover-${this.id}`, label: this.datePickerLabel, placement: "bottom-end", ref: (el) => (this.pickerPopover = el) }, h("swirl-date-picker", { key: '59132a95ef4adf202ec0cb2e6d798941299d24e0', disableDate: this.datePickerDisableDate, firstDayOfWeek: this.firstDayOfWeek, labels: this.labels, locale: this.locale, onValueChange: this.onPickDate, value: dateValue, startDate: dateValue })))));
229
+ return (h(Host, { key: '77aaf0846db36ae3c53aedfe95f6b8b1f1760572' }, h("div", { key: '346e4f7f711d8fa13203083e2812d24a2f6c5471', class: className }, h("input", { key: '1a851268aa0479639893a6975be78713353c8e8f', "aria-describedby": this.swirlAriaDescribedby, "aria-disabled": this.disabled ? "true" : undefined, "aria-invalid": ariaInvalid, autoFocus: this.autoFocus, class: "date-input__input", disabled: this.disabled, readonly: this.isInPickOnlyMode || this.readonly, id: this.id, inputmode: "numeric", onClick: this.onClick, onMouseDown: this.onMouseDown, onFocus: this.onFocus, onBlur: this.onBlur, placeholder: this.placeholder, ref: (el) => (this.inputEl = el), required: this.required, type: "text" }), !this.readonly && (h("swirl-popover-trigger", { key: '8e5da94d520dcc92deebfe8c9e17a9d7c4dddb81', swirlPopover: `popover-${this.id}` }, h("button", { key: 'ae641758c00ff228020ad06959fbaa58f51f3b06', "aria-label": this.datePickerTriggerLabel, class: "date-input__date-picker-button", disabled: this.disabled, type: "button" }, h("swirl-icon-today", { key: 'a19d5137d01c3a7381109eafeafc4d4a1529ad4e', size: this.iconSize }))))), !(this.disabled || this.readonly) && (h("swirl-popover", { key: 'dac1e2a9d8190f24e532944b6aabd91c484982c2', animation: "scale-in-y", class: "date-input__date-picker-popover", id: `popover-${this.id}`, label: this.datePickerLabel, placement: "bottom-end", ref: (el) => (this.pickerPopover = el) }, h("swirl-date-picker", { key: '0d26e6a36dbc28b0c877f34f1ff5b993faa01fa6', disableDate: this.datePickerDisableDate, firstDayOfWeek: this.firstDayOfWeek, labels: this.labels, locale: this.locale, onValueChange: this.onPickDate, value: dateValue, startDate: dateValue })))));
223
230
  }
224
231
  get el() { return this; }
225
232
  static get watchers() { return {