@ferrlabs/ui-ng 1.40.1 → 1.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -7241,9 +7241,6 @@ var SidebarComponent = class SidebarComponent {
|
|
|
7241
7241
|
this.collapsedWidth = input(64, ...ngDevMode ? [{ debugName: "collapsedWidth" }] : /* istanbul ignore next */ []);
|
|
7242
7242
|
this.widthPx = computed(() => this.collapsed() ? `${this.collapsedWidth()}px` : `${this.width()}px`, ...ngDevMode ? [{ debugName: "widthPx" }] : /* istanbul ignore next */ []);
|
|
7243
7243
|
}
|
|
7244
|
-
toggle() {
|
|
7245
|
-
this.collapsed.set(!this.collapsed());
|
|
7246
|
-
}
|
|
7247
7244
|
static {
|
|
7248
7245
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
7249
7246
|
minVersion: "12.0.0",
|
|
@@ -7301,15 +7298,11 @@ var SidebarComponent = class SidebarComponent {
|
|
|
7301
7298
|
<nav class="flr-sb__nav" [attr.aria-label]="navLabel()"><ng-content /></nav>
|
|
7302
7299
|
<div class="flr-sb__footer">
|
|
7303
7300
|
<div class="flr-sb__extra"><ng-content select="[sidebar-footer]" /></div>
|
|
7304
|
-
<button type="button" class="flr-sb__toggle mono" (click)="toggle()">
|
|
7305
|
-
<span aria-hidden="true">{{ collapsed() ? '→' : '←' }}</span>
|
|
7306
|
-
<span class="flr-sb__toggle-label">Collapse</span>
|
|
7307
|
-
</button>
|
|
7308
7301
|
</div>
|
|
7309
7302
|
</aside>
|
|
7310
7303
|
`,
|
|
7311
7304
|
isInline: true,
|
|
7312
|
-
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, #f7f7f5);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}.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-
|
|
7305
|
+
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, #f7f7f5);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}.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}}\n"],
|
|
7313
7306
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
7314
7307
|
});
|
|
7315
7308
|
}
|
|
@@ -7332,14 +7325,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7332
7325
|
<nav class="flr-sb__nav" [attr.aria-label]="navLabel()"><ng-content /></nav>
|
|
7333
7326
|
<div class="flr-sb__footer">
|
|
7334
7327
|
<div class="flr-sb__extra"><ng-content select="[sidebar-footer]" /></div>
|
|
7335
|
-
<button type="button" class="flr-sb__toggle mono" (click)="toggle()">
|
|
7336
|
-
<span aria-hidden="true">{{ collapsed() ? '→' : '←' }}</span>
|
|
7337
|
-
<span class="flr-sb__toggle-label">Collapse</span>
|
|
7338
|
-
</button>
|
|
7339
7328
|
</div>
|
|
7340
7329
|
</aside>
|
|
7341
7330
|
`,
|
|
7342
|
-
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, #f7f7f5);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}.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-
|
|
7331
|
+
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, #f7f7f5);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}.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}}\n"]
|
|
7343
7332
|
}]
|
|
7344
7333
|
}],
|
|
7345
7334
|
propDecorators: {
|
|
@@ -7837,6 +7826,108 @@ function isTrustedIconMarkup(markup) {
|
|
|
7837
7826
|
}
|
|
7838
7827
|
return !value.slice(cursor).includes("<");
|
|
7839
7828
|
}
|
|
7829
|
+
var RailToggleComponent = class RailToggleComponent {
|
|
7830
|
+
constructor() {
|
|
7831
|
+
this.collapsed = model(false, ...ngDevMode ? [{ debugName: "collapsed" }] : /* istanbul ignore next */ []);
|
|
7832
|
+
this.collapseLabel = input("Collapse sidebar", ...ngDevMode ? [{ debugName: "collapseLabel" }] : /* istanbul ignore next */ []);
|
|
7833
|
+
this.expandLabel = input("Expand sidebar", ...ngDevMode ? [{ debugName: "expandLabel" }] : /* istanbul ignore next */ []);
|
|
7834
|
+
this.label = computed(() => this.collapsed() ? this.expandLabel() : this.collapseLabel(), ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
7835
|
+
}
|
|
7836
|
+
toggle() {
|
|
7837
|
+
this.collapsed.set(!this.collapsed());
|
|
7838
|
+
}
|
|
7839
|
+
static {
|
|
7840
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
7841
|
+
minVersion: "12.0.0",
|
|
7842
|
+
version: "22.2.0",
|
|
7843
|
+
ngImport: i0,
|
|
7844
|
+
type: RailToggleComponent,
|
|
7845
|
+
deps: [],
|
|
7846
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
7847
|
+
});
|
|
7848
|
+
}
|
|
7849
|
+
static {
|
|
7850
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
7851
|
+
minVersion: "17.1.0",
|
|
7852
|
+
version: "22.2.0",
|
|
7853
|
+
type: RailToggleComponent,
|
|
7854
|
+
isStandalone: true,
|
|
7855
|
+
selector: "flr-rail-toggle",
|
|
7856
|
+
inputs: {
|
|
7857
|
+
collapsed: {
|
|
7858
|
+
classPropertyName: "collapsed",
|
|
7859
|
+
publicName: "collapsed",
|
|
7860
|
+
isSignal: true,
|
|
7861
|
+
isRequired: false,
|
|
7862
|
+
transformFunction: null
|
|
7863
|
+
},
|
|
7864
|
+
collapseLabel: {
|
|
7865
|
+
classPropertyName: "collapseLabel",
|
|
7866
|
+
publicName: "collapseLabel",
|
|
7867
|
+
isSignal: true,
|
|
7868
|
+
isRequired: false,
|
|
7869
|
+
transformFunction: null
|
|
7870
|
+
},
|
|
7871
|
+
expandLabel: {
|
|
7872
|
+
classPropertyName: "expandLabel",
|
|
7873
|
+
publicName: "expandLabel",
|
|
7874
|
+
isSignal: true,
|
|
7875
|
+
isRequired: false,
|
|
7876
|
+
transformFunction: null
|
|
7877
|
+
}
|
|
7878
|
+
},
|
|
7879
|
+
outputs: { collapsed: "collapsedChange" },
|
|
7880
|
+
ngImport: i0,
|
|
7881
|
+
template: "<button\n type=\"button\"\n class=\"flr-rail-toggle\"\n [class.flr-rail-toggle--collapsed]=\"collapsed()\"\n [attr.aria-label]=\"label()\"\n [attr.aria-expanded]=\"!collapsed()\"\n [attr.title]=\"label()\"\n (click)=\"toggle()\"\n>\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.6\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"3\" />\n <rect\n class=\"flr-rail-toggle__panel\"\n x=\"3\"\n y=\"4\"\n width=\"7\"\n height=\"16\"\n fill=\"currentColor\"\n fill-opacity=\"0.18\"\n stroke=\"none\"\n />\n <line class=\"flr-rail-toggle__panel\" x1=\"10\" y1=\"4\" x2=\"10\" y2=\"20\" />\n </svg>\n</button>\n",
|
|
7882
|
+
styles: [":host{display:inline-flex}.flr-rail-toggle{width:32px;height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:8px;background:transparent;color:var(--color-ink-2, #475569);cursor:pointer;transition:background .12s,color .12s}.flr-rail-toggle:hover{background:var(--color-app-nav-hover, rgba(30, 41, 59, .06));color:var(--color-ink, #1e293b)}.flr-rail-toggle:focus-visible{outline:2px solid var(--color-accent, var(--color-ink, #1e293b));outline-offset:2px}.flr-rail-toggle svg{width:20px;height:20px;overflow:visible}.flr-rail-toggle__panel{transform-box:fill-box;transform-origin:left center;transition:transform .28s cubic-bezier(.2,.8,.2,1)}.flr-rail-toggle:hover .flr-rail-toggle__panel{transform:scaleX(.8)}.flr-rail-toggle--collapsed .flr-rail-toggle__panel{transform:scaleX(.35)}.flr-rail-toggle--collapsed:hover .flr-rail-toggle__panel{transform:scaleX(.6)}@media(prefers-reduced-motion:reduce){.flr-rail-toggle__panel{transition:none}}\n"],
|
|
7883
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
7884
|
+
});
|
|
7885
|
+
}
|
|
7886
|
+
};
|
|
7887
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
7888
|
+
minVersion: "12.0.0",
|
|
7889
|
+
version: "22.2.0",
|
|
7890
|
+
ngImport: i0,
|
|
7891
|
+
type: RailToggleComponent,
|
|
7892
|
+
decorators: [{
|
|
7893
|
+
type: Component,
|
|
7894
|
+
args: [{
|
|
7895
|
+
selector: "flr-rail-toggle",
|
|
7896
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
7897
|
+
template: "<button\n type=\"button\"\n class=\"flr-rail-toggle\"\n [class.flr-rail-toggle--collapsed]=\"collapsed()\"\n [attr.aria-label]=\"label()\"\n [attr.aria-expanded]=\"!collapsed()\"\n [attr.title]=\"label()\"\n (click)=\"toggle()\"\n>\n <svg\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"1.6\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n aria-hidden=\"true\"\n >\n <rect x=\"3\" y=\"4\" width=\"18\" height=\"16\" rx=\"3\" />\n <rect\n class=\"flr-rail-toggle__panel\"\n x=\"3\"\n y=\"4\"\n width=\"7\"\n height=\"16\"\n fill=\"currentColor\"\n fill-opacity=\"0.18\"\n stroke=\"none\"\n />\n <line class=\"flr-rail-toggle__panel\" x1=\"10\" y1=\"4\" x2=\"10\" y2=\"20\" />\n </svg>\n</button>\n",
|
|
7898
|
+
styles: [":host{display:inline-flex}.flr-rail-toggle{width:32px;height:32px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:none;border-radius:8px;background:transparent;color:var(--color-ink-2, #475569);cursor:pointer;transition:background .12s,color .12s}.flr-rail-toggle:hover{background:var(--color-app-nav-hover, rgba(30, 41, 59, .06));color:var(--color-ink, #1e293b)}.flr-rail-toggle:focus-visible{outline:2px solid var(--color-accent, var(--color-ink, #1e293b));outline-offset:2px}.flr-rail-toggle svg{width:20px;height:20px;overflow:visible}.flr-rail-toggle__panel{transform-box:fill-box;transform-origin:left center;transition:transform .28s cubic-bezier(.2,.8,.2,1)}.flr-rail-toggle:hover .flr-rail-toggle__panel{transform:scaleX(.8)}.flr-rail-toggle--collapsed .flr-rail-toggle__panel{transform:scaleX(.35)}.flr-rail-toggle--collapsed:hover .flr-rail-toggle__panel{transform:scaleX(.6)}@media(prefers-reduced-motion:reduce){.flr-rail-toggle__panel{transition:none}}\n"]
|
|
7899
|
+
}]
|
|
7900
|
+
}],
|
|
7901
|
+
propDecorators: {
|
|
7902
|
+
collapsed: [{
|
|
7903
|
+
type: i0.Input,
|
|
7904
|
+
args: [{
|
|
7905
|
+
isSignal: true,
|
|
7906
|
+
alias: "collapsed",
|
|
7907
|
+
required: false
|
|
7908
|
+
}]
|
|
7909
|
+
}, {
|
|
7910
|
+
type: i0.Output,
|
|
7911
|
+
args: ["collapsedChange"]
|
|
7912
|
+
}],
|
|
7913
|
+
collapseLabel: [{
|
|
7914
|
+
type: i0.Input,
|
|
7915
|
+
args: [{
|
|
7916
|
+
isSignal: true,
|
|
7917
|
+
alias: "collapseLabel",
|
|
7918
|
+
required: false
|
|
7919
|
+
}]
|
|
7920
|
+
}],
|
|
7921
|
+
expandLabel: [{
|
|
7922
|
+
type: i0.Input,
|
|
7923
|
+
args: [{
|
|
7924
|
+
isSignal: true,
|
|
7925
|
+
alias: "expandLabel",
|
|
7926
|
+
required: false
|
|
7927
|
+
}]
|
|
7928
|
+
}]
|
|
7929
|
+
}
|
|
7930
|
+
});
|
|
7840
7931
|
const SHELL_CONTEXT = new InjectionToken("SHELL_CONTEXT");
|
|
7841
7932
|
var ShellComponent = class ShellComponent {
|
|
7842
7933
|
constructor() {
|
|
@@ -8004,6 +8095,7 @@ var ShellComponent = class ShellComponent {
|
|
|
8004
8095
|
|
|
8005
8096
|
<div class="flr-shell__body">
|
|
8006
8097
|
<header class="flr-shell__topbar">
|
|
8098
|
+
<flr-rail-toggle class="flr-shell__rail-toggle" [(collapsed)]="collapsed" />
|
|
8007
8099
|
<div class="flr-shell__slot flr-shell__slot--crumb-lead">
|
|
8008
8100
|
<ng-content select="[shell-breadcrumb-lead]" />
|
|
8009
8101
|
</div>
|
|
@@ -8043,7 +8135,7 @@ var ShellComponent = class ShellComponent {
|
|
|
8043
8135
|
</div>
|
|
8044
8136
|
`,
|
|
8045
8137
|
isInline: true,
|
|
8046
|
-
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, #fafaf9)}.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, 14px);overflow:clip}.flr-shell:not(:has(.flr-shell__rail:not(:empty))):not(:has(.flr-shell__switcher:not(:empty))){background:var(--color-app-bg, #fafaf9)}.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-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-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, 14px);overflow:clip;background:var(--color-app-bg, #fafaf9)}.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, #fafaf9);position:sticky;top:0;z-index:5}.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-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:8px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg-2, #f4f4f2);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:4px;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, #fafaf9)}\n"],
|
|
8138
|
+
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, #fafaf9)}.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, 14px);overflow:clip}.flr-shell:not(:has(.flr-shell__rail:not(:empty))):not(:has(.flr-shell__switcher:not(:empty))){background:var(--color-app-bg, #fafaf9)}.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-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-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, 14px);overflow:clip;background:var(--color-app-bg, #fafaf9)}.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, #fafaf9);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-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:8px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg-2, #f4f4f2);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:4px;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, #fafaf9)}\n"],
|
|
8047
8139
|
dependencies: [
|
|
8048
8140
|
{
|
|
8049
8141
|
kind: "component",
|
|
@@ -8078,6 +8170,17 @@ var ShellComponent = class ShellComponent {
|
|
|
8078
8170
|
"disabled"
|
|
8079
8171
|
],
|
|
8080
8172
|
outputs: ["selected"]
|
|
8173
|
+
},
|
|
8174
|
+
{
|
|
8175
|
+
kind: "component",
|
|
8176
|
+
type: RailToggleComponent,
|
|
8177
|
+
selector: "flr-rail-toggle",
|
|
8178
|
+
inputs: [
|
|
8179
|
+
"collapsed",
|
|
8180
|
+
"collapseLabel",
|
|
8181
|
+
"expandLabel"
|
|
8182
|
+
],
|
|
8183
|
+
outputs: ["collapsedChange"]
|
|
8081
8184
|
}
|
|
8082
8185
|
],
|
|
8083
8186
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
@@ -8097,7 +8200,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8097
8200
|
imports: [
|
|
8098
8201
|
SidebarComponent,
|
|
8099
8202
|
SidebarSectionComponent,
|
|
8100
|
-
SidebarItemComponent
|
|
8203
|
+
SidebarItemComponent,
|
|
8204
|
+
RailToggleComponent
|
|
8101
8205
|
],
|
|
8102
8206
|
providers: [{
|
|
8103
8207
|
provide: SHELL_CONTEXT,
|
|
@@ -8150,6 +8254,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8150
8254
|
|
|
8151
8255
|
<div class="flr-shell__body">
|
|
8152
8256
|
<header class="flr-shell__topbar">
|
|
8257
|
+
<flr-rail-toggle class="flr-shell__rail-toggle" [(collapsed)]="collapsed" />
|
|
8153
8258
|
<div class="flr-shell__slot flr-shell__slot--crumb-lead">
|
|
8154
8259
|
<ng-content select="[shell-breadcrumb-lead]" />
|
|
8155
8260
|
</div>
|
|
@@ -8188,7 +8293,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8188
8293
|
</div>
|
|
8189
8294
|
</div>
|
|
8190
8295
|
`,
|
|
8191
|
-
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, #fafaf9)}.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, 14px);overflow:clip}.flr-shell:not(:has(.flr-shell__rail:not(:empty))):not(:has(.flr-shell__switcher:not(:empty))){background:var(--color-app-bg, #fafaf9)}.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-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-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, 14px);overflow:clip;background:var(--color-app-bg, #fafaf9)}.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, #fafaf9);position:sticky;top:0;z-index:5}.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-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:8px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg-2, #f4f4f2);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:4px;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, #fafaf9)}\n"]
|
|
8296
|
+
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, #fafaf9)}.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, 14px);overflow:clip}.flr-shell:not(:has(.flr-shell__rail:not(:empty))):not(:has(.flr-shell__switcher:not(:empty))){background:var(--color-app-bg, #fafaf9)}.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-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-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, 14px);overflow:clip;background:var(--color-app-bg, #fafaf9)}.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, #fafaf9);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-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:8px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));background:var(--color-app-bg-2, #f4f4f2);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:4px;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, #fafaf9)}\n"]
|
|
8192
8297
|
}]
|
|
8193
8298
|
}],
|
|
8194
8299
|
propDecorators: {
|
|
@@ -9127,15 +9232,14 @@ const ENTITLED_STATUSES = /* @__PURE__ */ new Set([
|
|
|
9127
9232
|
"past_due"
|
|
9128
9233
|
]);
|
|
9129
9234
|
const ORG_HUB = "ferrlabs";
|
|
9130
|
-
function entitledApps(apps, subscriptions,
|
|
9235
|
+
function entitledApps(apps, subscriptions, _current) {
|
|
9131
9236
|
const held = new Map(subscriptions.filter((sub) => ENTITLED_STATUSES.has(sub.status)).map((sub) => [sub.product, sub]));
|
|
9132
|
-
return apps.
|
|
9237
|
+
return apps.map((app) => {
|
|
9133
9238
|
const sub = held.get(app.id);
|
|
9134
|
-
|
|
9239
|
+
return sub ? {
|
|
9135
9240
|
...app,
|
|
9136
9241
|
meta: tierLabel(sub.tier)
|
|
9137
|
-
}
|
|
9138
|
-
return app.id === "ferrlabs" || app.id === current ? [app] : [];
|
|
9242
|
+
} : app;
|
|
9139
9243
|
});
|
|
9140
9244
|
}
|
|
9141
9245
|
function tierLabel(tier) {
|
|
@@ -14793,6 +14897,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
14793
14897
|
}]
|
|
14794
14898
|
}
|
|
14795
14899
|
});
|
|
14796
|
-
export { AnnotatedTextareaComponent, AppRailComponent, AppSwitcherComponent, AvatarComponent, BannerComponent, BarChartComponent, BrandDropdownComponent, ButtonComponent, CONTACT_FORM_LABELS_EN, CONTACT_FORM_LABELS_FR, CONTACT_KINDS, CONTACT_PRODUCTS, CardComponent, CardHeaderComponent, CheckboxComponent, ComparisonTableComponent, ContactFormComponent, ContainerComponent, DEFAULT_APPS, DEFAULT_PAGE_SIZE, DEFAULT_PAGINATION_LABELS, DividerComponent, DrawerComponent, EmptyStateComponent, ErrorStateComponent, FieldComponent, InputComponent, LoadingStateComponent, LogoMarkComponent, MenuComponent, MenuItemComponent, MenuLabelComponent, MenuSeparatorComponent, ModalComponent, MultiSelectComponent, PageHeaderComponent, PaginationComponent, ProgressBarComponent, ProjectSwitcherComponent, RadioComponent, RadioGroupComponent, SHELL_CONTEXT, SITE_CHROME, SITE_LOCALES, SearchFieldComponent, SectionComponent, SegmentedComponent, SelectComponent, ShellComponent, SidebarComponent, SidebarItemComponent, SidebarSectionComponent, SiteCardComponent, SiteFooterComponent, SiteNavbarComponent, SiteShellComponent, SiteSwitcherComponent, SkeletonComponent, SpinnerComponent, StatComponent, StatusBarsComponent, SubmitComponent, SwitchComponent, TabComponent, TabsComponent, TagComponent, TextareaComponent, ToastContainerComponent, ToastService, TreeSelectComponent, UserMenuComponent, accountUrl, brandApps, entitledApps, hiddenAppsFromPreferences, localeBase, localeSwitchHref, marketingUrl, orgCreateUrl, paged, provideSiteChrome, readContactPrefill, readRuntimeEnv, resolveLocale, runtimeUrl, siteLocales, stripLocalePrefix, switcherState, userMenuItems, withHiddenApps, withLocaleBase };
|
|
14900
|
+
export { AnnotatedTextareaComponent, AppRailComponent, AppSwitcherComponent, AvatarComponent, BannerComponent, BarChartComponent, BrandDropdownComponent, ButtonComponent, CONTACT_FORM_LABELS_EN, CONTACT_FORM_LABELS_FR, CONTACT_KINDS, CONTACT_PRODUCTS, CardComponent, CardHeaderComponent, CheckboxComponent, ComparisonTableComponent, ContactFormComponent, ContainerComponent, DEFAULT_APPS, DEFAULT_PAGE_SIZE, DEFAULT_PAGINATION_LABELS, DividerComponent, DrawerComponent, EmptyStateComponent, ErrorStateComponent, FieldComponent, InputComponent, LoadingStateComponent, LogoMarkComponent, MenuComponent, MenuItemComponent, MenuLabelComponent, MenuSeparatorComponent, ModalComponent, MultiSelectComponent, PageHeaderComponent, PaginationComponent, ProgressBarComponent, ProjectSwitcherComponent, RadioComponent, RadioGroupComponent, RailToggleComponent, SHELL_CONTEXT, SITE_CHROME, SITE_LOCALES, SearchFieldComponent, SectionComponent, SegmentedComponent, SelectComponent, ShellComponent, SidebarComponent, SidebarItemComponent, SidebarSectionComponent, SiteCardComponent, SiteFooterComponent, SiteNavbarComponent, SiteShellComponent, SiteSwitcherComponent, SkeletonComponent, SpinnerComponent, StatComponent, StatusBarsComponent, SubmitComponent, SwitchComponent, TabComponent, TabsComponent, TagComponent, TextareaComponent, ToastContainerComponent, ToastService, TreeSelectComponent, UserMenuComponent, accountUrl, brandApps, entitledApps, hiddenAppsFromPreferences, localeBase, localeSwitchHref, marketingUrl, orgCreateUrl, paged, provideSiteChrome, readContactPrefill, readRuntimeEnv, resolveLocale, runtimeUrl, siteLocales, stripLocalePrefix, switcherState, userMenuItems, withHiddenApps, withLocaleBase };
|
|
14797
14901
|
|
|
14798
14902
|
//# sourceMappingURL=ferrlabs-ui-ng.mjs.map
|