@ferrlabs/ui-ng 1.64.0 → 1.64.2
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 +24 -0
- package/fesm2022/ferrlabs-ui-ng-docs.mjs +3 -3
- package/fesm2022/ferrlabs-ui-ng-docs.mjs.map +1 -1
- package/fesm2022/ferrlabs-ui-ng-markdown.mjs +4 -2
- package/fesm2022/ferrlabs-ui-ng-markdown.mjs.map +1 -1
- package/fesm2022/ferrlabs-ui-ng.mjs +335 -38
- package/fesm2022/ferrlabs-ui-ng.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ferrlabs-ui-ng-docs.d.ts +1 -1
- package/types/ferrlabs-ui-ng-docs.d.ts.map +1 -1
- package/types/ferrlabs-ui-ng.d.ts +55 -4
- package/types/ferrlabs-ui-ng.d.ts.map +1 -1
|
@@ -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.
|
|
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: {
|
|
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
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
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
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
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
|
-
|
|
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"
|
|
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
|
|
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]="
|
|
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]="
|
|
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
|
-
|
|
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"
|
|
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
|
|
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]="
|
|
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]="
|
|
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"]
|
|
@@ -17690,9 +17985,9 @@ const ACCESS_PICKER_LABELS_FR = {
|
|
|
17690
17985
|
presetFull: "Accès complet"
|
|
17691
17986
|
};
|
|
17692
17987
|
function buildAccessSelection(allOrgs, pickedOrgs, pickedScopes, orgs) {
|
|
17693
|
-
const scopes = [...pickedScopes].sort();
|
|
17988
|
+
const scopes = [...pickedScopes].sort((a, b) => a.localeCompare(b));
|
|
17694
17989
|
const listed = new Set(orgs.map((o) => o.id));
|
|
17695
|
-
const orgIds = allOrgs ? null : [...pickedOrgs].filter((id) => listed.has(id)).sort();
|
|
17990
|
+
const orgIds = allOrgs ? null : [...pickedOrgs].filter((id) => listed.has(id)).sort((a, b) => a.localeCompare(b));
|
|
17696
17991
|
if (scopes.length === 0 || orgIds !== null && orgIds.length === 0) return null;
|
|
17697
17992
|
return {
|
|
17698
17993
|
orgIds,
|
|
@@ -18330,7 +18625,9 @@ var SplitterComponent = class SplitterComponent {
|
|
|
18330
18625
|
const destroyRef = inject(DestroyRef);
|
|
18331
18626
|
afterNextRender(() => {
|
|
18332
18627
|
const observer = new ResizeObserver((entries) => {
|
|
18333
|
-
const
|
|
18628
|
+
const entry = entries.at(-1);
|
|
18629
|
+
if (!entry) return;
|
|
18630
|
+
const { width, height } = entry.contentRect;
|
|
18334
18631
|
this.box.set({
|
|
18335
18632
|
width,
|
|
18336
18633
|
height
|
|
@@ -18396,7 +18693,7 @@ var SplitterComponent = class SplitterComponent {
|
|
|
18396
18693
|
}
|
|
18397
18694
|
moveDrag(event) {
|
|
18398
18695
|
const drag = this.drag.current;
|
|
18399
|
-
if (
|
|
18696
|
+
if (drag?.pointerId !== event.pointerId) return;
|
|
18400
18697
|
drag.position = this.axisPosition(event);
|
|
18401
18698
|
drag.frame ??= requestAnimationFrame(() => this.applyDrag(drag));
|
|
18402
18699
|
}
|