@ferrlabs/ui-ng 1.64.0 → 1.64.1

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/README.md CHANGED
@@ -41,6 +41,30 @@ import { ButtonComponent } from '@ferrlabs/ui-ng';
41
41
  export class Demo {}
42
42
  ```
43
43
 
44
+ ## Shell on narrow viewports
45
+
46
+ At `max-width: 880px` `flr-shell` takes the sidebar out of the layout and shows a
47
+ menu button in the topbar instead of the rail toggle. The button opens the sidebar
48
+ as an off-canvas drawer with the app switcher, the org switcher, the nav and the
49
+ user menu, always expanded whatever `collapsed` says.
50
+
51
+ While the drawer is open the rest of the shell is `inert`, focus moves into the
52
+ drawer and page scroll is locked. Escape, the backdrop, a nav item and a
53
+ `currentPath` change close it and return focus to the menu button. No setup is
54
+ needed. The drawer is announced as a dialog. Its name and the two button labels
55
+ are inputs, for translation:
56
+
57
+ ```html
58
+ <flr-shell
59
+ navLabel="Navigation"
60
+ navOpenLabel="Ouvrir la navigation"
61
+ navCloseLabel="Fermer la navigation"
62
+ />
63
+ ```
64
+
65
+ A standalone `flr-sidebar` gets the same drawer through `[(drawerOpen)]`; the
66
+ trigger and the `inert` handling are then yours.
67
+
44
68
  ## Splitter
45
69
 
46
70
  Resizable panes with a draggable, keyboard accessible handle between each pair.
@@ -4,10 +4,12 @@ import { ChangeDetectionStrategy, Component, DestroyRef, Directive, ElementRef,
4
4
  import * as i1 from "@angular/forms";
5
5
  import { FormsModule, NG_VALUE_ACCESSOR } from "@angular/forms";
6
6
  import * as i1$2 from "@angular/cdk/overlay";
7
- import { Overlay, OverlayModule } from "@angular/cdk/overlay";
7
+ import { Overlay, OverlayContainer, OverlayModule, ScrollStrategyOptions } from "@angular/cdk/overlay";
8
8
  import * as i1$1 from "@angular/cdk/a11y";
9
9
  import { A11yModule, FocusKeyManager, LiveAnnouncer } from "@angular/cdk/a11y";
10
10
  import { TemplatePortal } from "@angular/cdk/portal";
11
+ import { BreakpointObserver } from "@angular/cdk/layout";
12
+ import { toSignal } from "@angular/core/rxjs-interop";
11
13
  import { DomSanitizer, Meta, Title } from "@angular/platform-browser";
12
14
  const SIZE$6 = {
13
15
  sm: {
@@ -8832,14 +8834,25 @@ function markColorOnDark(accent) {
8832
8834
  ].map((i) => Number.parseInt(full.slice(i, i + 2), 16));
8833
8835
  return .2126 * r + .7152 * g + .0722 * b > 70 ? accent : "#ffffff";
8834
8836
  }
8837
+ let sidebarCounter = 0;
8835
8838
  var SidebarComponent = class SidebarComponent {
8836
8839
  constructor() {
8837
8840
  this.collapsed = model(false, ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
8841
+ this.drawerOpen = model(false, ...ngDevMode ? [{ debugName: "drawerOpen" }] : /* istanbul ignore next */ []);
8838
8842
  this.navLabel = input("Sections", ...ngDevMode ? [{ debugName: "navLabel" }] : /* istanbul ignore next */ []);
8843
+ this.drawerLabel = input("Navigation", ...ngDevMode ? [{ debugName: "drawerLabel" }] : /* istanbul ignore next */ []);
8844
+ this.drawerCloseLabel = input("Close navigation", ...ngDevMode ? [{ debugName: "drawerCloseLabel" }] : /* istanbul ignore next */ []);
8839
8845
  this.width = input(256, ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
8840
8846
  this.collapsedWidth = input(64, ...ngDevMode ? [{ debugName: "collapsedWidth" }] : /* istanbul ignore next */ []);
8847
+ this.panelId = `flr-sb-${++sidebarCounter}`;
8848
+ this.panel = viewChild.required("panel", ...ngDevMode ? [{ debugName: "panel" }] : /* istanbul ignore next */ []);
8841
8849
  this.widthPx = computed(() => this.collapsed() ? `${this.collapsedWidth()}px` : `${this.width()}px`, ...ngDevMode ? [{ debugName: "widthPx" }] : /* istanbul ignore next */ []);
8842
8850
  }
8851
+ onEscape() {
8852
+ if (!this.drawerOpen()) return;
8853
+ if (this.panel().nativeElement.querySelector("[aria-expanded=\"true\"]")) return;
8854
+ this.drawerOpen.set(false);
8855
+ }
8843
8856
  static {
8844
8857
  this.ɵfac = i0.ɵɵngDeclareFactory({
8845
8858
  minVersion: "12.0.0",
@@ -8852,7 +8865,7 @@ var SidebarComponent = class SidebarComponent {
8852
8865
  }
8853
8866
  static {
8854
8867
  this.ɵcmp = i0.ɵɵngDeclareComponent({
8855
- minVersion: "17.1.0",
8868
+ minVersion: "17.2.0",
8856
8869
  version: "22.3.0",
8857
8870
  type: SidebarComponent,
8858
8871
  isStandalone: true,
@@ -8865,6 +8878,13 @@ var SidebarComponent = class SidebarComponent {
8865
8878
  isRequired: false,
8866
8879
  transformFunction: null
8867
8880
  },
8881
+ drawerOpen: {
8882
+ classPropertyName: "drawerOpen",
8883
+ publicName: "drawerOpen",
8884
+ isSignal: true,
8885
+ isRequired: false,
8886
+ transformFunction: null
8887
+ },
8868
8888
  navLabel: {
8869
8889
  classPropertyName: "navLabel",
8870
8890
  publicName: "navLabel",
@@ -8872,6 +8892,20 @@ var SidebarComponent = class SidebarComponent {
8872
8892
  isRequired: false,
8873
8893
  transformFunction: null
8874
8894
  },
8895
+ drawerLabel: {
8896
+ classPropertyName: "drawerLabel",
8897
+ publicName: "drawerLabel",
8898
+ isSignal: true,
8899
+ isRequired: false,
8900
+ transformFunction: null
8901
+ },
8902
+ drawerCloseLabel: {
8903
+ classPropertyName: "drawerCloseLabel",
8904
+ publicName: "drawerCloseLabel",
8905
+ isSignal: true,
8906
+ isRequired: false,
8907
+ transformFunction: null
8908
+ },
8875
8909
  width: {
8876
8910
  classPropertyName: "width",
8877
8911
  publicName: "width",
@@ -8887,21 +8921,64 @@ var SidebarComponent = class SidebarComponent {
8887
8921
  transformFunction: null
8888
8922
  }
8889
8923
  },
8890
- outputs: { collapsed: "collapsedChange" },
8924
+ outputs: {
8925
+ collapsed: "collapsedChange",
8926
+ drawerOpen: "drawerOpenChange"
8927
+ },
8928
+ host: { listeners: { "document:keydown.escape": "onEscape()" } },
8929
+ viewQueries: [{
8930
+ propertyName: "panel",
8931
+ first: true,
8932
+ predicate: ["panel"],
8933
+ descendants: true,
8934
+ isSignal: true
8935
+ }],
8891
8936
  ngImport: i0,
8892
8937
  template: `
8893
- <aside class="flr-sb" [class.flr-sb--collapsed]="collapsed()" [style.width]="widthPx()">
8894
- <div class="flr-sb__switcher"><ng-content select="[sidebar-switcher]" /></div>
8895
- <div class="flr-sb__brand"><ng-content select="[sidebar-brand]" /></div>
8896
- <div class="flr-sb__project"><ng-content select="[sidebar-project]" /></div>
8897
- <nav class="flr-sb__nav" [attr.aria-label]="navLabel()"><ng-content /></nav>
8898
- <div class="flr-sb__footer">
8899
- <div class="flr-sb__extra"><ng-content select="[sidebar-footer]" /></div>
8938
+ <aside
8939
+ class="flr-sb"
8940
+ [class.flr-sb--collapsed]="collapsed()"
8941
+ [class.flr-sb--drawer-open]="drawerOpen()"
8942
+ [style.width]="widthPx()"
8943
+ >
8944
+ <div
8945
+ #panel
8946
+ class="flr-sb__panel"
8947
+ [id]="panelId"
8948
+ [cdkTrapFocus]="drawerOpen()"
8949
+ [cdkTrapFocusAutoCapture]="drawerOpen()"
8950
+ [attr.role]="drawerOpen() ? 'dialog' : null"
8951
+ [attr.aria-modal]="drawerOpen() ? 'true' : null"
8952
+ [attr.aria-label]="drawerOpen() ? drawerLabel() : null"
8953
+ >
8954
+ <div class="flr-sb__switcher"><ng-content select="[sidebar-switcher]" /></div>
8955
+ <div class="flr-sb__brand"><ng-content select="[sidebar-brand]" /></div>
8956
+ <div class="flr-sb__project"><ng-content select="[sidebar-project]" /></div>
8957
+ <nav class="flr-sb__nav" [attr.aria-label]="navLabel()"><ng-content /></nav>
8958
+ <div class="flr-sb__footer">
8959
+ <div class="flr-sb__extra"><ng-content select="[sidebar-footer]" /></div>
8960
+ </div>
8961
+ <button
8962
+ type="button"
8963
+ class="flr-sb__backdrop"
8964
+ [attr.aria-label]="drawerCloseLabel()"
8965
+ (click)="drawerOpen.set(false)"
8966
+ ></button>
8900
8967
  </div>
8901
8968
  </aside>
8902
8969
  `,
8903
8970
  isInline: true,
8904
- styles: [":host{display:contents}.flr-sb{flex-shrink:0;height:var(--flr-sidebar-height, 100dvh);position:sticky;top:0;display:flex;flex-direction:column;background:var(--color-app-sidebar, #f6f8fb);border-right:1px solid var(--flr-sidebar-border, var(--color-rule, rgba(30, 41, 59, .14)));transition:width .22s ease}.flr-sb__brand{height:64px;min-height:64px;box-sizing:border-box;display:flex;align-items:stretch;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14))}.flr-sb--collapsed .flr-sb__brand{justify-content:center}.flr-sb__brand:empty,.flr-sb__project:empty,.flr-sb__switcher:empty,.flr-sb__extra:empty,.flr-sb__brand:has(>div:only-child:empty),.flr-sb__project:has(>div:only-child:empty),.flr-sb__switcher:has(>div:only-child:empty),.flr-sb__extra:not(:has(>:not(:empty))){display:none}.flr-sb__switcher{padding:12px 12px 4px;transition:padding .22s ease}.flr-sb--collapsed .flr-sb__switcher{padding:12px 8px 4px}.flr-sb__extra{padding:4px 4px 8px}.flr-sb__nav{flex:1;padding:8px;overflow-y:auto}.flr-sb__footer{border-top:1px solid var(--color-rule, rgba(30, 41, 59, .14));padding:8px}.flr-sb__footer:not(:has(.flr-sb__extra>:not(:empty))){display:none}@media(max-width:880px){.flr-sb{display:none}}@media(prefers-reduced-motion:reduce){.flr-sb__switcher{transition:none}}\n"],
8971
+ styles: [":host{display:contents}.flr-sb{flex-shrink:0;height:var(--flr-sidebar-height, 100dvh);position:sticky;top:0;display:flex;flex-direction:column;background:var(--color-app-sidebar, #f6f8fb);border-right:1px solid var(--flr-sidebar-border, var(--color-rule, rgba(30, 41, 59, .14)));transition:width .22s ease}.flr-sb__panel{flex:1;min-height:0;display:flex;flex-direction:column}.flr-sb__brand{height:64px;min-height:64px;box-sizing:border-box;display:flex;align-items:stretch;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14))}.flr-sb--collapsed .flr-sb__brand{justify-content:center}.flr-sb__brand:empty,.flr-sb__project:empty,.flr-sb__switcher:empty,.flr-sb__extra:empty,.flr-sb__brand:has(>div:only-child:empty),.flr-sb__project:has(>div:only-child:empty),.flr-sb__switcher:has(>div:only-child:empty),.flr-sb__extra:not(:has(>:not(:empty))){display:none}.flr-sb__switcher{padding:12px 12px 4px;transition:padding .22s ease}.flr-sb--collapsed .flr-sb__switcher{padding:12px 8px 4px}.flr-sb__extra{padding:4px 4px 8px}.flr-sb__nav{flex:1;padding:8px;overflow-y:auto}.flr-sb__footer{border-top:1px solid var(--color-rule, rgba(30, 41, 59, .14));padding:8px}.flr-sb__footer:not(:has(.flr-sb__extra>:not(:empty))){display:none}.flr-sb__backdrop{display:none}@media(max-width:880px){.flr-sb{position:fixed;inset:0 auto 0 0;z-index:40;height:100dvh;max-width:calc(100vw - 56px);overscroll-behavior:contain;visibility:hidden;translate:-100% 0;transition:translate .22s ease,visibility 0s .22s}.flr-sb--drawer-open{visibility:visible;translate:0 0;transition:translate .22s ease,visibility 0s}.flr-sb__backdrop{display:block;position:absolute;top:0;left:100%;width:calc(100vw - 100%);height:100%;padding:0;border:none;background:var(--flr-sidebar-backdrop, rgba(15, 23, 42, .5));opacity:0;transition:opacity .22s ease}.flr-sb--drawer-open .flr-sb__backdrop{opacity:1}.flr-sb__backdrop:focus-visible{outline:2px solid #ffffff;outline-offset:-4px}}@media(prefers-reduced-motion:reduce){.flr-sb,.flr-sb__backdrop,.flr-sb__switcher{transition:none}}\n"],
8972
+ dependencies: [{
8973
+ kind: "ngmodule",
8974
+ type: A11yModule
8975
+ }, {
8976
+ kind: "directive",
8977
+ type: i1$1.CdkTrapFocus,
8978
+ selector: "[cdkTrapFocus]",
8979
+ inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"],
8980
+ exportAs: ["cdkTrapFocus"]
8981
+ }],
8905
8982
  changeDetection: i0.ChangeDetectionStrategy.OnPush
8906
8983
  });
8907
8984
  }
@@ -8916,18 +8993,42 @@ i0.ɵɵngDeclareClassMetadata({
8916
8993
  args: [{
8917
8994
  selector: "flr-sidebar",
8918
8995
  changeDetection: ChangeDetectionStrategy.OnPush,
8996
+ imports: [A11yModule],
8997
+ host: { "(document:keydown.escape)": "onEscape()" },
8919
8998
  template: `
8920
- <aside class="flr-sb" [class.flr-sb--collapsed]="collapsed()" [style.width]="widthPx()">
8921
- <div class="flr-sb__switcher"><ng-content select="[sidebar-switcher]" /></div>
8922
- <div class="flr-sb__brand"><ng-content select="[sidebar-brand]" /></div>
8923
- <div class="flr-sb__project"><ng-content select="[sidebar-project]" /></div>
8924
- <nav class="flr-sb__nav" [attr.aria-label]="navLabel()"><ng-content /></nav>
8925
- <div class="flr-sb__footer">
8926
- <div class="flr-sb__extra"><ng-content select="[sidebar-footer]" /></div>
8999
+ <aside
9000
+ class="flr-sb"
9001
+ [class.flr-sb--collapsed]="collapsed()"
9002
+ [class.flr-sb--drawer-open]="drawerOpen()"
9003
+ [style.width]="widthPx()"
9004
+ >
9005
+ <div
9006
+ #panel
9007
+ class="flr-sb__panel"
9008
+ [id]="panelId"
9009
+ [cdkTrapFocus]="drawerOpen()"
9010
+ [cdkTrapFocusAutoCapture]="drawerOpen()"
9011
+ [attr.role]="drawerOpen() ? 'dialog' : null"
9012
+ [attr.aria-modal]="drawerOpen() ? 'true' : null"
9013
+ [attr.aria-label]="drawerOpen() ? drawerLabel() : null"
9014
+ >
9015
+ <div class="flr-sb__switcher"><ng-content select="[sidebar-switcher]" /></div>
9016
+ <div class="flr-sb__brand"><ng-content select="[sidebar-brand]" /></div>
9017
+ <div class="flr-sb__project"><ng-content select="[sidebar-project]" /></div>
9018
+ <nav class="flr-sb__nav" [attr.aria-label]="navLabel()"><ng-content /></nav>
9019
+ <div class="flr-sb__footer">
9020
+ <div class="flr-sb__extra"><ng-content select="[sidebar-footer]" /></div>
9021
+ </div>
9022
+ <button
9023
+ type="button"
9024
+ class="flr-sb__backdrop"
9025
+ [attr.aria-label]="drawerCloseLabel()"
9026
+ (click)="drawerOpen.set(false)"
9027
+ ></button>
8927
9028
  </div>
8928
9029
  </aside>
8929
9030
  `,
8930
- styles: [":host{display:contents}.flr-sb{flex-shrink:0;height:var(--flr-sidebar-height, 100dvh);position:sticky;top:0;display:flex;flex-direction:column;background:var(--color-app-sidebar, #f6f8fb);border-right:1px solid var(--flr-sidebar-border, var(--color-rule, rgba(30, 41, 59, .14)));transition:width .22s ease}.flr-sb__brand{height:64px;min-height:64px;box-sizing:border-box;display:flex;align-items:stretch;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14))}.flr-sb--collapsed .flr-sb__brand{justify-content:center}.flr-sb__brand:empty,.flr-sb__project:empty,.flr-sb__switcher:empty,.flr-sb__extra:empty,.flr-sb__brand:has(>div:only-child:empty),.flr-sb__project:has(>div:only-child:empty),.flr-sb__switcher:has(>div:only-child:empty),.flr-sb__extra:not(:has(>:not(:empty))){display:none}.flr-sb__switcher{padding:12px 12px 4px;transition:padding .22s ease}.flr-sb--collapsed .flr-sb__switcher{padding:12px 8px 4px}.flr-sb__extra{padding:4px 4px 8px}.flr-sb__nav{flex:1;padding:8px;overflow-y:auto}.flr-sb__footer{border-top:1px solid var(--color-rule, rgba(30, 41, 59, .14));padding:8px}.flr-sb__footer:not(:has(.flr-sb__extra>:not(:empty))){display:none}@media(max-width:880px){.flr-sb{display:none}}@media(prefers-reduced-motion:reduce){.flr-sb__switcher{transition:none}}\n"]
9031
+ styles: [":host{display:contents}.flr-sb{flex-shrink:0;height:var(--flr-sidebar-height, 100dvh);position:sticky;top:0;display:flex;flex-direction:column;background:var(--color-app-sidebar, #f6f8fb);border-right:1px solid var(--flr-sidebar-border, var(--color-rule, rgba(30, 41, 59, .14)));transition:width .22s ease}.flr-sb__panel{flex:1;min-height:0;display:flex;flex-direction:column}.flr-sb__brand{height:64px;min-height:64px;box-sizing:border-box;display:flex;align-items:stretch;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14))}.flr-sb--collapsed .flr-sb__brand{justify-content:center}.flr-sb__brand:empty,.flr-sb__project:empty,.flr-sb__switcher:empty,.flr-sb__extra:empty,.flr-sb__brand:has(>div:only-child:empty),.flr-sb__project:has(>div:only-child:empty),.flr-sb__switcher:has(>div:only-child:empty),.flr-sb__extra:not(:has(>:not(:empty))){display:none}.flr-sb__switcher{padding:12px 12px 4px;transition:padding .22s ease}.flr-sb--collapsed .flr-sb__switcher{padding:12px 8px 4px}.flr-sb__extra{padding:4px 4px 8px}.flr-sb__nav{flex:1;padding:8px;overflow-y:auto}.flr-sb__footer{border-top:1px solid var(--color-rule, rgba(30, 41, 59, .14));padding:8px}.flr-sb__footer:not(:has(.flr-sb__extra>:not(:empty))){display:none}.flr-sb__backdrop{display:none}@media(max-width:880px){.flr-sb{position:fixed;inset:0 auto 0 0;z-index:40;height:100dvh;max-width:calc(100vw - 56px);overscroll-behavior:contain;visibility:hidden;translate:-100% 0;transition:translate .22s ease,visibility 0s .22s}.flr-sb--drawer-open{visibility:visible;translate:0 0;transition:translate .22s ease,visibility 0s}.flr-sb__backdrop{display:block;position:absolute;top:0;left:100%;width:calc(100vw - 100%);height:100%;padding:0;border:none;background:var(--flr-sidebar-backdrop, rgba(15, 23, 42, .5));opacity:0;transition:opacity .22s ease}.flr-sb--drawer-open .flr-sb__backdrop{opacity:1}.flr-sb__backdrop:focus-visible{outline:2px solid #ffffff;outline-offset:-4px}}@media(prefers-reduced-motion:reduce){.flr-sb,.flr-sb__backdrop,.flr-sb__switcher{transition:none}}\n"]
8931
9032
  }]
8932
9033
  }],
8933
9034
  propDecorators: {
@@ -8942,6 +9043,17 @@ i0.ɵɵngDeclareClassMetadata({
8942
9043
  type: i0.Output,
8943
9044
  args: ["collapsedChange"]
8944
9045
  }],
9046
+ drawerOpen: [{
9047
+ type: i0.Input,
9048
+ args: [{
9049
+ isSignal: true,
9050
+ alias: "drawerOpen",
9051
+ required: false
9052
+ }]
9053
+ }, {
9054
+ type: i0.Output,
9055
+ args: ["drawerOpenChange"]
9056
+ }],
8945
9057
  navLabel: [{
8946
9058
  type: i0.Input,
8947
9059
  args: [{
@@ -8950,6 +9062,22 @@ i0.ɵɵngDeclareClassMetadata({
8950
9062
  required: false
8951
9063
  }]
8952
9064
  }],
9065
+ drawerLabel: [{
9066
+ type: i0.Input,
9067
+ args: [{
9068
+ isSignal: true,
9069
+ alias: "drawerLabel",
9070
+ required: false
9071
+ }]
9072
+ }],
9073
+ drawerCloseLabel: [{
9074
+ type: i0.Input,
9075
+ args: [{
9076
+ isSignal: true,
9077
+ alias: "drawerCloseLabel",
9078
+ required: false
9079
+ }]
9080
+ }],
8953
9081
  width: [{
8954
9082
  type: i0.Input,
8955
9083
  args: [{
@@ -8965,6 +9093,10 @@ i0.ɵɵngDeclareClassMetadata({
8965
9093
  alias: "collapsedWidth",
8966
9094
  required: false
8967
9095
  }]
9096
+ }],
9097
+ panel: [{
9098
+ type: i0.ViewChild,
9099
+ args: ["panel", { isSignal: true }]
8968
9100
  }]
8969
9101
  }
8970
9102
  });
@@ -9597,6 +9729,7 @@ function resolveCrumbs(crumbs) {
9597
9729
  function isPlainLeftClick(event) {
9598
9730
  return !event.metaKey && !event.ctrlKey && !event.shiftKey && !event.altKey && event.button === 0;
9599
9731
  }
9732
+ const NARROW_VIEWPORT = "(max-width: 880px)";
9600
9733
  var ShellComponent = class ShellComponent {
9601
9734
  constructor() {
9602
9735
  this.productName = input("", ...ngDevMode ? [{ debugName: "productName" }] : /* istanbul ignore next */ []);
@@ -9606,17 +9739,49 @@ var ShellComponent = class ShellComponent {
9606
9739
  this.currentPath = input("/", ...ngDevMode ? [{ debugName: "currentPath" }] : /* istanbul ignore next */ []);
9607
9740
  this.breadcrumb = input([], ...ngDevMode ? [{ debugName: "breadcrumb" }] : /* istanbul ignore next */ []);
9608
9741
  this.searchEnabled = input(false, ...ngDevMode ? [{ debugName: "searchEnabled" }] : /* istanbul ignore next */ []);
9742
+ this.navLabel = input("Navigation", ...ngDevMode ? [{ debugName: "navLabel" }] : /* istanbul ignore next */ []);
9743
+ this.navOpenLabel = input("Open navigation", ...ngDevMode ? [{ debugName: "navOpenLabel" }] : /* istanbul ignore next */ []);
9744
+ this.navCloseLabel = input("Close navigation", ...ngDevMode ? [{ debugName: "navCloseLabel" }] : /* istanbul ignore next */ []);
9609
9745
  this.collapsed = model(false, ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
9746
+ this.viewport = toSignal(inject(BreakpointObserver).observe(NARROW_VIEWPORT));
9747
+ this.narrow = computed(() => this.viewport()?.matches ?? false, ...ngDevMode ? [{ debugName: "narrow" }] : /* istanbul ignore next */ []);
9748
+ this.railCollapsed = computed(() => this.collapsed() && !this.narrow(), ...ngDevMode ? [{ debugName: "railCollapsed" }] : /* istanbul ignore next */ []);
9749
+ this.navOpen = signal(false, ...ngDevMode ? [{ debugName: "navOpen" }] : /* istanbul ignore next */ []);
9750
+ this.navToggle = viewChild.required("navToggle", ...ngDevMode ? [{ debugName: "navToggle" }] : /* istanbul ignore next */ []);
9751
+ this.sidebar = viewChild.required(SidebarComponent, ...ngDevMode ? [{ debugName: "sidebar" }] : /* istanbul ignore next */ []);
9752
+ this.overlayContainer = inject(OverlayContainer);
9753
+ this.scrollBlock = inject(ScrollStrategyOptions).block();
9610
9754
  this.crumbs = computed(() => resolveCrumbs(this.breadcrumb()), ...ngDevMode ? [{ debugName: "crumbs" }] : /* istanbul ignore next */ []);
9611
9755
  this.navigate = output();
9612
9756
  this.search = output();
9613
9757
  this.sanitizer = inject(DomSanitizer);
9614
9758
  this.activeItemId = computed(() => activeNavItemId(this.sections(), this.currentPath()), ...ngDevMode ? [{ debugName: "activeItemId" }] : /* istanbul ignore next */ []);
9759
+ effect(() => {
9760
+ this.currentPath();
9761
+ this.narrow();
9762
+ this.navOpen.set(false);
9763
+ });
9764
+ effect((onCleanup) => {
9765
+ if (!this.navOpen()) return;
9766
+ this.loadScrollBlockStyles();
9767
+ this.scrollBlock.enable();
9768
+ onCleanup(() => this.scrollBlock.disable());
9769
+ });
9770
+ let wasOpen = false;
9771
+ afterRenderEffect(() => {
9772
+ const open = this.navOpen();
9773
+ if (wasOpen && !open && this.narrow()) this.navToggle().nativeElement.focus();
9774
+ wasOpen = open;
9775
+ });
9776
+ }
9777
+ loadScrollBlockStyles() {
9778
+ this.overlayContainer.getContainerElement();
9615
9779
  }
9616
9780
  isActive(item) {
9617
9781
  return item.href !== void 0 && item.id === this.activeItemId();
9618
9782
  }
9619
9783
  onSelect(item) {
9784
+ this.navOpen.set(false);
9620
9785
  if (item.href) this.navigate.emit(item.href);
9621
9786
  }
9622
9787
  onCrumbClick(event, href) {
@@ -9701,6 +9866,27 @@ var ShellComponent = class ShellComponent {
9701
9866
  isRequired: false,
9702
9867
  transformFunction: null
9703
9868
  },
9869
+ navLabel: {
9870
+ classPropertyName: "navLabel",
9871
+ publicName: "navLabel",
9872
+ isSignal: true,
9873
+ isRequired: false,
9874
+ transformFunction: null
9875
+ },
9876
+ navOpenLabel: {
9877
+ classPropertyName: "navOpenLabel",
9878
+ publicName: "navOpenLabel",
9879
+ isSignal: true,
9880
+ isRequired: false,
9881
+ transformFunction: null
9882
+ },
9883
+ navCloseLabel: {
9884
+ classPropertyName: "navCloseLabel",
9885
+ publicName: "navCloseLabel",
9886
+ isSignal: true,
9887
+ isRequired: false,
9888
+ transformFunction: null
9889
+ },
9704
9890
  collapsed: {
9705
9891
  classPropertyName: "collapsed",
9706
9892
  publicName: "collapsed",
@@ -9717,27 +9903,47 @@ var ShellComponent = class ShellComponent {
9717
9903
  host: { listeners: { "window:keydown": "onKeydown($event)" } },
9718
9904
  providers: [{
9719
9905
  provide: SHELL_CONTEXT,
9720
- useExisting: forwardRef(() => ShellComponent)
9906
+ useFactory: () => ({ collapsed: inject(forwardRef(() => ShellComponent)).railCollapsed })
9907
+ }],
9908
+ viewQueries: [{
9909
+ propertyName: "navToggle",
9910
+ first: true,
9911
+ predicate: ["navToggle"],
9912
+ descendants: true,
9913
+ isSignal: true
9914
+ }, {
9915
+ propertyName: "sidebar",
9916
+ first: true,
9917
+ predicate: SidebarComponent,
9918
+ descendants: true,
9919
+ isSignal: true
9721
9920
  }],
9722
9921
  ngImport: i0,
9723
9922
  template: `
9724
9923
  <div class="flr-shell">
9725
- <div class="flr-shell__rail"><ng-content select="[shell-rail]" /></div>
9924
+ <div class="flr-shell__rail" [attr.inert]="navOpen() ? '' : null">
9925
+ <ng-content select="[shell-rail]" />
9926
+ </div>
9726
9927
  <div class="flr-shell__surface">
9727
- <flr-sidebar [(collapsed)]="collapsed">
9928
+ <flr-sidebar
9929
+ [collapsed]="railCollapsed()"
9930
+ [(drawerOpen)]="navOpen"
9931
+ [drawerLabel]="navLabel()"
9932
+ [drawerCloseLabel]="navCloseLabel()"
9933
+ >
9728
9934
  <div sidebar-switcher class="flr-shell__switcher">
9729
9935
  <ng-content select="[shell-switcher]" />
9730
9936
  </div>
9731
9937
  <div sidebar-brand class="flr-shell__brand"><ng-content select="[shell-brand]" /></div>
9732
9938
  <div sidebar-project><ng-content select="[shell-project]" /></div>
9733
9939
  @for (group of sections(); track group.title ?? $index) {
9734
- <flr-sidebar-section [title]="group.title ?? null" [collapsed]="collapsed()">
9940
+ <flr-sidebar-section [title]="group.title ?? null" [collapsed]="railCollapsed()">
9735
9941
  @for (item of group.items; track item.id) {
9736
9942
  <flr-sidebar-item
9737
9943
  [label]="item.label"
9738
9944
  [href]="item.href ?? null"
9739
9945
  [active]="isActive(item)"
9740
- [collapsed]="collapsed()"
9946
+ [collapsed]="railCollapsed()"
9741
9947
  [accent]="accent()"
9742
9948
  [badge]="item.badge ?? null"
9743
9949
  [danger]="item.danger ?? false"
@@ -9764,8 +9970,31 @@ var ShellComponent = class ShellComponent {
9764
9970
  <div sidebar-footer class="flr-shell__user"><ng-content select="[shell-user]" /></div>
9765
9971
  </flr-sidebar>
9766
9972
 
9767
- <div class="flr-shell__body">
9973
+ <div class="flr-shell__body" [attr.inert]="navOpen() ? '' : null">
9768
9974
  <header class="flr-shell__topbar">
9975
+ <button
9976
+ #navToggle
9977
+ type="button"
9978
+ class="flr-shell__nav-toggle"
9979
+ aria-haspopup="dialog"
9980
+ [attr.aria-controls]="sidebar().panelId"
9981
+ [attr.aria-expanded]="navOpen()"
9982
+ [attr.aria-label]="navOpenLabel()"
9983
+ (click)="navOpen.set(true)"
9984
+ >
9985
+ <svg
9986
+ viewBox="0 0 24 24"
9987
+ fill="none"
9988
+ stroke="currentColor"
9989
+ stroke-width="1.75"
9990
+ stroke-linecap="round"
9991
+ aria-hidden="true"
9992
+ >
9993
+ <line x1="4" y1="7" x2="20" y2="7" />
9994
+ <line x1="4" y1="12" x2="20" y2="12" />
9995
+ <line x1="4" y1="17" x2="20" y2="17" />
9996
+ </svg>
9997
+ </button>
9769
9998
  <flr-rail-toggle class="flr-shell__rail-toggle" [(collapsed)]="collapsed" />
9770
9999
  <div class="flr-shell__slot flr-shell__slot--crumb-lead">
9771
10000
  <ng-content select="[shell-breadcrumb-lead]" />
@@ -9818,7 +10047,7 @@ var ShellComponent = class ShellComponent {
9818
10047
  </div>
9819
10048
  `,
9820
10049
  isInline: true,
9821
- styles: [":host{display:block}.flr-shell{display:flex;height:100dvh;background:var(--color-app-rail, #101012)}.flr-shell__surface{display:flex;flex:1;min-width:0;background:var(--color-app-bg, #f8fafc)}.flr-shell:has(.flr-shell__rail:not(:empty)) .flr-shell__surface{--flr-sidebar-height: calc(100dvh - var(--flr-shell-inset, 10px));margin-top:var(--flr-shell-inset, 10px);border-top-left-radius:var(--flr-shell-radius, var(--radius-modal, 24px));corner-shape:var(--corner-shape, round);overflow:clip}.flr-shell:not(:has(.flr-shell__rail:not(:empty))):not(:has(.flr-shell__switcher:not(:empty))){background:var(--color-app-bg, #f8fafc)}.flr-shell:has(.flr-shell__switcher:not(:empty)) flr-sidebar{--color-app-sidebar: var(--color-app-rail, #101012);--color-ink: #ffffff;--color-ink-2: rgba(255, 255, 255, .62);--color-ink-3: rgba(255, 255, 255, .56);--color-rule: rgba(255, 255, 255, .1);--color-app-nav-hover: rgba(255, 255, 255, .06);--color-app-nav-active: rgba(255, 255, 255, .1);--color-danger: #f87171;--color-danger-fg: #fca5a5;--color-avatar-bg: rgba(255, 255, 255, .16);--color-card: var(--color-app-rail-tip, #1a1b20);--color-app-bg-2: rgba(255, 255, 255, .06);--flr-sidebar-border: transparent}.flr-shell:has(.flr-shell__switcher:not(:empty)) flr-sidebar-item{--flr-sb-active-icon: var(--flr-sb-accent-on-dark)}.flr-shell:has(.flr-shell__switcher:not(:empty)) .flr-shell__surface{background:var(--color-app-rail, #101012)}.flr-shell:has(.flr-shell__switcher:not(:empty)) .flr-shell__body{margin-top:var(--flr-shell-inset, 10px);border-top-left-radius:var(--flr-shell-radius, var(--radius-modal, 24px));corner-shape:var(--corner-shape, round);overflow:clip;background:var(--color-app-bg, #f8fafc)}.flr-shell__rail{display:flex;align-self:stretch}.flr-shell__rail:empty{display:none}.flr-shell__brand{display:flex;align-items:stretch;width:100%}.flr-shell__body{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.flr-shell__topbar{height:64px;display:flex;align-items:center;padding:0 28px;gap:16px;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg, #f8fafc);position:sticky;top:0;z-index:5}.flr-shell__rail-toggle{margin-left:-8px}@media(max-width:880px){.flr-shell__rail-toggle{display:none}}.flr-shell__crumbs{font-size:12px;color:var(--color-ink-3, #64748b);display:flex;gap:6px;align-items:center}.flr-shell__crumb--last{color:var(--color-ink, #1e293b)}.flr-shell__crumb--link{color:inherit;text-decoration:none;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round)}.flr-shell__crumb--link:hover{color:var(--color-ink, #1e293b);text-decoration:underline}.flr-shell__crumb--link:focus-visible{outline:2px solid var(--color-ink, #1e293b);outline-offset:2px}.flr-shell__crumb-sep{opacity:.5}.flr-shell__spacer{flex:1}.flr-shell__search{display:inline-flex;align-items:center;gap:8px;padding:6px 10px 6px 12px;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg-2, #f1f5f9);color:var(--color-ink-3, #64748b);font-family:var(--font-mono, \"DM Mono\", ui-monospace, monospace);font-size:12px;cursor:pointer;transition:background .12s,border-color .12s}.flr-shell__search:hover{background:var(--color-card, #fff);border-color:var(--color-rule-strong, rgba(30, 41, 59, .24))}.flr-shell__kbd{display:inline-flex;align-items:center;padding:1px 5px;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-card, #fff);font-family:inherit;font-size:10.5px;letter-spacing:.04em}.flr-shell__slot{display:flex;align-items:center;gap:12px}.flr-shell__slot:empty{display:none}.flr-shell__slot--crumb{margin-left:4px}.flr-shell__slot--crumb-lead:not(:empty)+.flr-shell__crumbs:before{content:\"/\";margin-right:6px;color:var(--color-ink-3, #64748b);opacity:.5}.flr-shell__main{flex:1;min-height:0;overflow-y:auto;padding-bottom:var(--flr-shell-main-pad-bottom, 40px);background:var(--color-app-bg, #f8fafc)}\n"],
10050
+ styles: [":host{display:block}.flr-shell{display:flex;height:100dvh;background:var(--color-app-rail, #101012)}.flr-shell__surface{display:flex;flex:1;min-width:0;background:var(--color-app-bg, #f8fafc)}.flr-shell:has(.flr-shell__rail:not(:empty)) .flr-shell__surface{--flr-sidebar-height: calc(100dvh - var(--flr-shell-inset, 10px));margin-top:var(--flr-shell-inset, 10px);border-top-left-radius:var(--flr-shell-radius, var(--radius-modal, 24px));corner-shape:var(--corner-shape, round);overflow:clip}.flr-shell:not(:has(.flr-shell__rail:not(:empty))):not(:has(.flr-shell__switcher:not(:empty))){background:var(--color-app-bg, #f8fafc)}.flr-shell:has(.flr-shell__switcher:not(:empty)) flr-sidebar{--color-app-sidebar: var(--color-app-rail, #101012);--color-ink: #ffffff;--color-ink-2: rgba(255, 255, 255, .62);--color-ink-3: rgba(255, 255, 255, .56);--color-rule: rgba(255, 255, 255, .1);--color-app-nav-hover: rgba(255, 255, 255, .06);--color-app-nav-active: rgba(255, 255, 255, .1);--color-danger: #f87171;--color-danger-fg: #fca5a5;--color-avatar-bg: rgba(255, 255, 255, .16);--color-card: var(--color-app-rail-tip, #1a1b20);--color-app-bg-2: rgba(255, 255, 255, .06);--flr-sidebar-border: transparent}.flr-shell:has(.flr-shell__switcher:not(:empty)) flr-sidebar-item{--flr-sb-active-icon: var(--flr-sb-accent-on-dark)}.flr-shell:has(.flr-shell__switcher:not(:empty)) .flr-shell__surface{background:var(--color-app-rail, #101012)}.flr-shell:has(.flr-shell__switcher:not(:empty)) .flr-shell__body{margin-top:var(--flr-shell-inset, 10px);border-top-left-radius:var(--flr-shell-radius, var(--radius-modal, 24px));corner-shape:var(--corner-shape, round);overflow:clip;background:var(--color-app-bg, #f8fafc)}.flr-shell__rail{display:flex;align-self:stretch}.flr-shell__rail:empty{display:none}.flr-shell__brand{display:flex;align-items:stretch;width:100%}.flr-shell__body{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.flr-shell__topbar{height:64px;display:flex;align-items:center;padding:0 28px;gap:16px;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg, #f8fafc);position:sticky;top:0;z-index:5}.flr-shell__rail-toggle{margin-left:-8px}.flr-shell__nav-toggle{display:none;width:44px;height:44px;margin-left:-12px;padding:0;flex-shrink:0;align-items:center;justify-content:center;border:none;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);background:transparent;color:var(--color-ink-2, #475569);cursor:pointer}.flr-shell__nav-toggle:hover{background:var(--color-app-nav-hover, rgba(30, 41, 59, .06));color:var(--color-ink, #1e293b)}.flr-shell__nav-toggle:focus-visible{outline:2px solid var(--color-accent, var(--color-ink, #1e293b));outline-offset:2px}.flr-shell__nav-toggle svg{width:20px;height:20px}@media(max-width:880px){.flr-shell__topbar{padding:0 16px;gap:12px}.flr-shell__rail-toggle{display:none}.flr-shell__nav-toggle{display:inline-flex}}.flr-shell__crumbs{font-size:12px;color:var(--color-ink-3, #64748b);display:flex;gap:6px;align-items:center}.flr-shell__crumb--last{color:var(--color-ink, #1e293b)}.flr-shell__crumb--link{color:inherit;text-decoration:none;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round)}.flr-shell__crumb--link:hover{color:var(--color-ink, #1e293b);text-decoration:underline}.flr-shell__crumb--link:focus-visible{outline:2px solid var(--color-ink, #1e293b);outline-offset:2px}.flr-shell__crumb-sep{opacity:.5}.flr-shell__spacer{flex:1}.flr-shell__search{display:inline-flex;align-items:center;gap:8px;padding:6px 10px 6px 12px;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg-2, #f1f5f9);color:var(--color-ink-3, #64748b);font-family:var(--font-mono, \"DM Mono\", ui-monospace, monospace);font-size:12px;cursor:pointer;transition:background .12s,border-color .12s}.flr-shell__search:hover{background:var(--color-card, #fff);border-color:var(--color-rule-strong, rgba(30, 41, 59, .24))}.flr-shell__kbd{display:inline-flex;align-items:center;padding:1px 5px;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-card, #fff);font-family:inherit;font-size:10.5px;letter-spacing:.04em}.flr-shell__slot{display:flex;align-items:center;gap:12px}.flr-shell__slot:empty{display:none}.flr-shell__slot--crumb{margin-left:4px}.flr-shell__slot--crumb-lead:not(:empty)+.flr-shell__crumbs:before{content:\"/\";margin-right:6px;color:var(--color-ink-3, #64748b);opacity:.5}.flr-shell__main{flex:1;min-height:0;overflow-y:auto;padding-bottom:var(--flr-shell-main-pad-bottom, 40px);background:var(--color-app-bg, #f8fafc)}\n"],
9822
10051
  dependencies: [
9823
10052
  {
9824
10053
  kind: "component",
@@ -9826,11 +10055,14 @@ var ShellComponent = class ShellComponent {
9826
10055
  selector: "flr-sidebar",
9827
10056
  inputs: [
9828
10057
  "collapsed",
10058
+ "drawerOpen",
9829
10059
  "navLabel",
10060
+ "drawerLabel",
10061
+ "drawerCloseLabel",
9830
10062
  "width",
9831
10063
  "collapsedWidth"
9832
10064
  ],
9833
- outputs: ["collapsedChange"]
10065
+ outputs: ["collapsedChange", "drawerOpenChange"]
9834
10066
  },
9835
10067
  {
9836
10068
  kind: "component",
@@ -9888,27 +10120,34 @@ i0.ɵɵngDeclareClassMetadata({
9888
10120
  ],
9889
10121
  providers: [{
9890
10122
  provide: SHELL_CONTEXT,
9891
- useExisting: forwardRef(() => ShellComponent)
10123
+ useFactory: () => ({ collapsed: inject(forwardRef(() => ShellComponent)).railCollapsed })
9892
10124
  }],
9893
10125
  host: { "(window:keydown)": "onKeydown($event)" },
9894
10126
  template: `
9895
10127
  <div class="flr-shell">
9896
- <div class="flr-shell__rail"><ng-content select="[shell-rail]" /></div>
10128
+ <div class="flr-shell__rail" [attr.inert]="navOpen() ? '' : null">
10129
+ <ng-content select="[shell-rail]" />
10130
+ </div>
9897
10131
  <div class="flr-shell__surface">
9898
- <flr-sidebar [(collapsed)]="collapsed">
10132
+ <flr-sidebar
10133
+ [collapsed]="railCollapsed()"
10134
+ [(drawerOpen)]="navOpen"
10135
+ [drawerLabel]="navLabel()"
10136
+ [drawerCloseLabel]="navCloseLabel()"
10137
+ >
9899
10138
  <div sidebar-switcher class="flr-shell__switcher">
9900
10139
  <ng-content select="[shell-switcher]" />
9901
10140
  </div>
9902
10141
  <div sidebar-brand class="flr-shell__brand"><ng-content select="[shell-brand]" /></div>
9903
10142
  <div sidebar-project><ng-content select="[shell-project]" /></div>
9904
10143
  @for (group of sections(); track group.title ?? $index) {
9905
- <flr-sidebar-section [title]="group.title ?? null" [collapsed]="collapsed()">
10144
+ <flr-sidebar-section [title]="group.title ?? null" [collapsed]="railCollapsed()">
9906
10145
  @for (item of group.items; track item.id) {
9907
10146
  <flr-sidebar-item
9908
10147
  [label]="item.label"
9909
10148
  [href]="item.href ?? null"
9910
10149
  [active]="isActive(item)"
9911
- [collapsed]="collapsed()"
10150
+ [collapsed]="railCollapsed()"
9912
10151
  [accent]="accent()"
9913
10152
  [badge]="item.badge ?? null"
9914
10153
  [danger]="item.danger ?? false"
@@ -9935,8 +10174,31 @@ i0.ɵɵngDeclareClassMetadata({
9935
10174
  <div sidebar-footer class="flr-shell__user"><ng-content select="[shell-user]" /></div>
9936
10175
  </flr-sidebar>
9937
10176
 
9938
- <div class="flr-shell__body">
10177
+ <div class="flr-shell__body" [attr.inert]="navOpen() ? '' : null">
9939
10178
  <header class="flr-shell__topbar">
10179
+ <button
10180
+ #navToggle
10181
+ type="button"
10182
+ class="flr-shell__nav-toggle"
10183
+ aria-haspopup="dialog"
10184
+ [attr.aria-controls]="sidebar().panelId"
10185
+ [attr.aria-expanded]="navOpen()"
10186
+ [attr.aria-label]="navOpenLabel()"
10187
+ (click)="navOpen.set(true)"
10188
+ >
10189
+ <svg
10190
+ viewBox="0 0 24 24"
10191
+ fill="none"
10192
+ stroke="currentColor"
10193
+ stroke-width="1.75"
10194
+ stroke-linecap="round"
10195
+ aria-hidden="true"
10196
+ >
10197
+ <line x1="4" y1="7" x2="20" y2="7" />
10198
+ <line x1="4" y1="12" x2="20" y2="12" />
10199
+ <line x1="4" y1="17" x2="20" y2="17" />
10200
+ </svg>
10201
+ </button>
9940
10202
  <flr-rail-toggle class="flr-shell__rail-toggle" [(collapsed)]="collapsed" />
9941
10203
  <div class="flr-shell__slot flr-shell__slot--crumb-lead">
9942
10204
  <ng-content select="[shell-breadcrumb-lead]" />
@@ -9988,9 +10250,10 @@ i0.ɵɵngDeclareClassMetadata({
9988
10250
  </div>
9989
10251
  </div>
9990
10252
  `,
9991
- styles: [":host{display:block}.flr-shell{display:flex;height:100dvh;background:var(--color-app-rail, #101012)}.flr-shell__surface{display:flex;flex:1;min-width:0;background:var(--color-app-bg, #f8fafc)}.flr-shell:has(.flr-shell__rail:not(:empty)) .flr-shell__surface{--flr-sidebar-height: calc(100dvh - var(--flr-shell-inset, 10px));margin-top:var(--flr-shell-inset, 10px);border-top-left-radius:var(--flr-shell-radius, var(--radius-modal, 24px));corner-shape:var(--corner-shape, round);overflow:clip}.flr-shell:not(:has(.flr-shell__rail:not(:empty))):not(:has(.flr-shell__switcher:not(:empty))){background:var(--color-app-bg, #f8fafc)}.flr-shell:has(.flr-shell__switcher:not(:empty)) flr-sidebar{--color-app-sidebar: var(--color-app-rail, #101012);--color-ink: #ffffff;--color-ink-2: rgba(255, 255, 255, .62);--color-ink-3: rgba(255, 255, 255, .56);--color-rule: rgba(255, 255, 255, .1);--color-app-nav-hover: rgba(255, 255, 255, .06);--color-app-nav-active: rgba(255, 255, 255, .1);--color-danger: #f87171;--color-danger-fg: #fca5a5;--color-avatar-bg: rgba(255, 255, 255, .16);--color-card: var(--color-app-rail-tip, #1a1b20);--color-app-bg-2: rgba(255, 255, 255, .06);--flr-sidebar-border: transparent}.flr-shell:has(.flr-shell__switcher:not(:empty)) flr-sidebar-item{--flr-sb-active-icon: var(--flr-sb-accent-on-dark)}.flr-shell:has(.flr-shell__switcher:not(:empty)) .flr-shell__surface{background:var(--color-app-rail, #101012)}.flr-shell:has(.flr-shell__switcher:not(:empty)) .flr-shell__body{margin-top:var(--flr-shell-inset, 10px);border-top-left-radius:var(--flr-shell-radius, var(--radius-modal, 24px));corner-shape:var(--corner-shape, round);overflow:clip;background:var(--color-app-bg, #f8fafc)}.flr-shell__rail{display:flex;align-self:stretch}.flr-shell__rail:empty{display:none}.flr-shell__brand{display:flex;align-items:stretch;width:100%}.flr-shell__body{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.flr-shell__topbar{height:64px;display:flex;align-items:center;padding:0 28px;gap:16px;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg, #f8fafc);position:sticky;top:0;z-index:5}.flr-shell__rail-toggle{margin-left:-8px}@media(max-width:880px){.flr-shell__rail-toggle{display:none}}.flr-shell__crumbs{font-size:12px;color:var(--color-ink-3, #64748b);display:flex;gap:6px;align-items:center}.flr-shell__crumb--last{color:var(--color-ink, #1e293b)}.flr-shell__crumb--link{color:inherit;text-decoration:none;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round)}.flr-shell__crumb--link:hover{color:var(--color-ink, #1e293b);text-decoration:underline}.flr-shell__crumb--link:focus-visible{outline:2px solid var(--color-ink, #1e293b);outline-offset:2px}.flr-shell__crumb-sep{opacity:.5}.flr-shell__spacer{flex:1}.flr-shell__search{display:inline-flex;align-items:center;gap:8px;padding:6px 10px 6px 12px;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg-2, #f1f5f9);color:var(--color-ink-3, #64748b);font-family:var(--font-mono, \"DM Mono\", ui-monospace, monospace);font-size:12px;cursor:pointer;transition:background .12s,border-color .12s}.flr-shell__search:hover{background:var(--color-card, #fff);border-color:var(--color-rule-strong, rgba(30, 41, 59, .24))}.flr-shell__kbd{display:inline-flex;align-items:center;padding:1px 5px;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-card, #fff);font-family:inherit;font-size:10.5px;letter-spacing:.04em}.flr-shell__slot{display:flex;align-items:center;gap:12px}.flr-shell__slot:empty{display:none}.flr-shell__slot--crumb{margin-left:4px}.flr-shell__slot--crumb-lead:not(:empty)+.flr-shell__crumbs:before{content:\"/\";margin-right:6px;color:var(--color-ink-3, #64748b);opacity:.5}.flr-shell__main{flex:1;min-height:0;overflow-y:auto;padding-bottom:var(--flr-shell-main-pad-bottom, 40px);background:var(--color-app-bg, #f8fafc)}\n"]
10253
+ styles: [":host{display:block}.flr-shell{display:flex;height:100dvh;background:var(--color-app-rail, #101012)}.flr-shell__surface{display:flex;flex:1;min-width:0;background:var(--color-app-bg, #f8fafc)}.flr-shell:has(.flr-shell__rail:not(:empty)) .flr-shell__surface{--flr-sidebar-height: calc(100dvh - var(--flr-shell-inset, 10px));margin-top:var(--flr-shell-inset, 10px);border-top-left-radius:var(--flr-shell-radius, var(--radius-modal, 24px));corner-shape:var(--corner-shape, round);overflow:clip}.flr-shell:not(:has(.flr-shell__rail:not(:empty))):not(:has(.flr-shell__switcher:not(:empty))){background:var(--color-app-bg, #f8fafc)}.flr-shell:has(.flr-shell__switcher:not(:empty)) flr-sidebar{--color-app-sidebar: var(--color-app-rail, #101012);--color-ink: #ffffff;--color-ink-2: rgba(255, 255, 255, .62);--color-ink-3: rgba(255, 255, 255, .56);--color-rule: rgba(255, 255, 255, .1);--color-app-nav-hover: rgba(255, 255, 255, .06);--color-app-nav-active: rgba(255, 255, 255, .1);--color-danger: #f87171;--color-danger-fg: #fca5a5;--color-avatar-bg: rgba(255, 255, 255, .16);--color-card: var(--color-app-rail-tip, #1a1b20);--color-app-bg-2: rgba(255, 255, 255, .06);--flr-sidebar-border: transparent}.flr-shell:has(.flr-shell__switcher:not(:empty)) flr-sidebar-item{--flr-sb-active-icon: var(--flr-sb-accent-on-dark)}.flr-shell:has(.flr-shell__switcher:not(:empty)) .flr-shell__surface{background:var(--color-app-rail, #101012)}.flr-shell:has(.flr-shell__switcher:not(:empty)) .flr-shell__body{margin-top:var(--flr-shell-inset, 10px);border-top-left-radius:var(--flr-shell-radius, var(--radius-modal, 24px));corner-shape:var(--corner-shape, round);overflow:clip;background:var(--color-app-bg, #f8fafc)}.flr-shell__rail{display:flex;align-self:stretch}.flr-shell__rail:empty{display:none}.flr-shell__brand{display:flex;align-items:stretch;width:100%}.flr-shell__body{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.flr-shell__topbar{height:64px;display:flex;align-items:center;padding:0 28px;gap:16px;border-bottom:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg, #f8fafc);position:sticky;top:0;z-index:5}.flr-shell__rail-toggle{margin-left:-8px}.flr-shell__nav-toggle{display:none;width:44px;height:44px;margin-left:-12px;padding:0;flex-shrink:0;align-items:center;justify-content:center;border:none;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);background:transparent;color:var(--color-ink-2, #475569);cursor:pointer}.flr-shell__nav-toggle:hover{background:var(--color-app-nav-hover, rgba(30, 41, 59, .06));color:var(--color-ink, #1e293b)}.flr-shell__nav-toggle:focus-visible{outline:2px solid var(--color-accent, var(--color-ink, #1e293b));outline-offset:2px}.flr-shell__nav-toggle svg{width:20px;height:20px}@media(max-width:880px){.flr-shell__topbar{padding:0 16px;gap:12px}.flr-shell__rail-toggle{display:none}.flr-shell__nav-toggle{display:inline-flex}}.flr-shell__crumbs{font-size:12px;color:var(--color-ink-3, #64748b);display:flex;gap:6px;align-items:center}.flr-shell__crumb--last{color:var(--color-ink, #1e293b)}.flr-shell__crumb--link{color:inherit;text-decoration:none;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round)}.flr-shell__crumb--link:hover{color:var(--color-ink, #1e293b);text-decoration:underline}.flr-shell__crumb--link:focus-visible{outline:2px solid var(--color-ink, #1e293b);outline-offset:2px}.flr-shell__crumb-sep{opacity:.5}.flr-shell__spacer{flex:1}.flr-shell__search{display:inline-flex;align-items:center;gap:8px;padding:6px 10px 6px 12px;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg-2, #f1f5f9);color:var(--color-ink-3, #64748b);font-family:var(--font-mono, \"DM Mono\", ui-monospace, monospace);font-size:12px;cursor:pointer;transition:background .12s,border-color .12s}.flr-shell__search:hover{background:var(--color-card, #fff);border-color:var(--color-rule-strong, rgba(30, 41, 59, .24))}.flr-shell__kbd{display:inline-flex;align-items:center;padding:1px 5px;border-radius:var(--radius-control, 8px);corner-shape:var(--corner-shape, round);border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-card, #fff);font-family:inherit;font-size:10.5px;letter-spacing:.04em}.flr-shell__slot{display:flex;align-items:center;gap:12px}.flr-shell__slot:empty{display:none}.flr-shell__slot--crumb{margin-left:4px}.flr-shell__slot--crumb-lead:not(:empty)+.flr-shell__crumbs:before{content:\"/\";margin-right:6px;color:var(--color-ink-3, #64748b);opacity:.5}.flr-shell__main{flex:1;min-height:0;overflow-y:auto;padding-bottom:var(--flr-shell-main-pad-bottom, 40px);background:var(--color-app-bg, #f8fafc)}\n"]
9992
10254
  }]
9993
10255
  }],
10256
+ ctorParameters: () => [],
9994
10257
  propDecorators: {
9995
10258
  productName: [{
9996
10259
  type: i0.Input,
@@ -10048,6 +10311,30 @@ i0.ɵɵngDeclareClassMetadata({
10048
10311
  required: false
10049
10312
  }]
10050
10313
  }],
10314
+ navLabel: [{
10315
+ type: i0.Input,
10316
+ args: [{
10317
+ isSignal: true,
10318
+ alias: "navLabel",
10319
+ required: false
10320
+ }]
10321
+ }],
10322
+ navOpenLabel: [{
10323
+ type: i0.Input,
10324
+ args: [{
10325
+ isSignal: true,
10326
+ alias: "navOpenLabel",
10327
+ required: false
10328
+ }]
10329
+ }],
10330
+ navCloseLabel: [{
10331
+ type: i0.Input,
10332
+ args: [{
10333
+ isSignal: true,
10334
+ alias: "navCloseLabel",
10335
+ required: false
10336
+ }]
10337
+ }],
10051
10338
  collapsed: [{
10052
10339
  type: i0.Input,
10053
10340
  args: [{
@@ -10059,6 +10346,14 @@ i0.ɵɵngDeclareClassMetadata({
10059
10346
  type: i0.Output,
10060
10347
  args: ["collapsedChange"]
10061
10348
  }],
10349
+ navToggle: [{
10350
+ type: i0.ViewChild,
10351
+ args: ["navToggle", { isSignal: true }]
10352
+ }],
10353
+ sidebar: [{
10354
+ type: i0.ViewChild,
10355
+ args: [i0.forwardRef(() => SidebarComponent), { isSignal: true }]
10356
+ }],
10062
10357
  navigate: [{
10063
10358
  type: i0.Output,
10064
10359
  args: ["navigate"]