@ferrlabs/ui-ng 1.38.0 → 1.39.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.
@@ -3,22 +3,22 @@ import { ChangeDetectionStrategy, Component, PLATFORM_ID, afterNextRender, compu
3
3
  import { isPlatformBrowser } from "@angular/common";
4
4
  var DocsLayoutComponent = class DocsLayoutComponent {
5
5
  constructor() {
6
- this.slug = input.required(...ngDevMode ? [{ debugName: "slug" }] : /* istanbul ignore next */ []);
7
- this.nav = input.required(...ngDevMode ? [{ debugName: "nav" }] : /* istanbul ignore next */ []);
8
- this.versions = input([], ...ngDevMode ? [{ debugName: "versions" }] : /* istanbul ignore next */ []);
9
- this.lang = input("en", ...ngDevMode ? [{ debugName: "lang" }] : /* istanbul ignore next */ []);
10
- this.version = input("current", ...ngDevMode ? [{ debugName: "version" }] : /* istanbul ignore next */ []);
11
- this.docsSegment = input("docs", ...ngDevMode ? [{ debugName: "docsSegment" }] : /* istanbul ignore next */ []);
12
- this.sidebarOpen = signal(false, ...ngDevMode ? [{ debugName: "sidebarOpen" }] : /* istanbul ignore next */ []);
13
- this.toc = signal([], ...ngDevMode ? [{ debugName: "toc" }] : /* istanbul ignore next */ []);
14
- this.pagePath = signal("", ...ngDevMode ? [{ debugName: "pagePath" }] : /* istanbul ignore next */ []);
6
+ this.slug = input.required(...ngDevMode ? [{ debugName: "slug" }] : /* istanbul ignore next */ []);
7
+ this.nav = input.required(...ngDevMode ? [{ debugName: "nav" }] : /* istanbul ignore next */ []);
8
+ this.versions = input([], ...ngDevMode ? [{ debugName: "versions" }] : /* istanbul ignore next */ []);
9
+ this.lang = input("en", ...ngDevMode ? [{ debugName: "lang" }] : /* istanbul ignore next */ []);
10
+ this.version = input("current", ...ngDevMode ? [{ debugName: "version" }] : /* istanbul ignore next */ []);
11
+ this.docsSegment = input("docs", ...ngDevMode ? [{ debugName: "docsSegment" }] : /* istanbul ignore next */ []);
12
+ this.sidebarOpen = signal(false, ...ngDevMode ? [{ debugName: "sidebarOpen" }] : /* istanbul ignore next */ []);
13
+ this.toc = signal([], ...ngDevMode ? [{ debugName: "toc" }] : /* istanbul ignore next */ []);
14
+ this.pagePath = signal("", ...ngDevMode ? [{ debugName: "pagePath" }] : /* istanbul ignore next */ []);
15
15
  this.platformId = inject(PLATFORM_ID);
16
- this.contentHost = viewChild("content", ...ngDevMode ? [{ debugName: "contentHost" }] : /* istanbul ignore next */ []);
17
- this.isFr = computed(() => this.lang() === "fr", ...ngDevMode ? [{ debugName: "isFr" }] : /* istanbul ignore next */ []);
18
- this.versionPath = computed(() => this.version() === "current" ? "" : `/${this.version()}`, ...ngDevMode ? [{ debugName: "versionPath" }] : /* istanbul ignore next */ []);
19
- this.base = computed(() => `${this.isFr() ? "/fr" : ""}${this.versionPath()}/${this.docsSegment()}`, ...ngDevMode ? [{ debugName: "base" }] : /* istanbul ignore next */ []);
20
- this.order = computed(() => this.nav().flatMap((s) => s.items), ...ngDevMode ? [{ debugName: "order" }] : /* istanbul ignore next */ []);
21
- this.currentIndex = computed(() => this.order().findIndex((item) => item.slug === this.slug()), ...ngDevMode ? [{ debugName: "currentIndex" }] : /* istanbul ignore next */ []);
16
+ this.contentHost = viewChild("content", ...ngDevMode ? [{ debugName: "contentHost" }] : /* istanbul ignore next */ []);
17
+ this.isFr = computed(() => this.lang() === "fr", ...ngDevMode ? [{ debugName: "isFr" }] : /* istanbul ignore next */ []);
18
+ this.versionPath = computed(() => this.version() === "current" ? "" : `/${this.version()}`, ...ngDevMode ? [{ debugName: "versionPath" }] : /* istanbul ignore next */ []);
19
+ this.base = computed(() => `${this.isFr() ? "/fr" : ""}${this.versionPath()}/${this.docsSegment()}`, ...ngDevMode ? [{ debugName: "base" }] : /* istanbul ignore next */ []);
20
+ this.order = computed(() => this.nav().flatMap((s) => s.items), ...ngDevMode ? [{ debugName: "order" }] : /* istanbul ignore next */ []);
21
+ this.currentIndex = computed(() => this.order().findIndex((item) => item.slug === this.slug()), ...ngDevMode ? [{ debugName: "currentIndex" }] : /* istanbul ignore next */ []);
22
22
  this.prev = computed(() => {
23
23
  const i = this.currentIndex();
24
24
  if (i <= 0) return null;
@@ -27,7 +27,7 @@ var DocsLayoutComponent = class DocsLayoutComponent {
27
27
  label: item.label,
28
28
  href: this.docHref(item.slug)
29
29
  };
30
- }, ...ngDevMode ? [{ debugName: "prev" }] : /* istanbul ignore next */ []);
30
+ }, ...ngDevMode ? [{ debugName: "prev" }] : /* istanbul ignore next */ []);
31
31
  this.next = computed(() => {
32
32
  const order = this.order();
33
33
  const i = this.currentIndex();
@@ -37,15 +37,15 @@ var DocsLayoutComponent = class DocsLayoutComponent {
37
37
  label: item.label,
38
38
  href: this.docHref(item.slug)
39
39
  };
40
- }, ...ngDevMode ? [{ debugName: "next" }] : /* istanbul ignore next */ []);
41
- this.sidebarLabel = computed(() => this.sidebarOpen() ? this.isFr() ? "Fermer" : "Close" : this.isFr() ? "Sommaire" : "Menu", ...ngDevMode ? [{ debugName: "sidebarLabel" }] : /* istanbul ignore next */ []);
40
+ }, ...ngDevMode ? [{ debugName: "next" }] : /* istanbul ignore next */ []);
41
+ this.sidebarLabel = computed(() => this.sidebarOpen() ? this.isFr() ? "Fermer" : "Close" : this.isFr() ? "Sommaire" : "Menu", ...ngDevMode ? [{ debugName: "sidebarLabel" }] : /* istanbul ignore next */ []);
42
42
  this.navLabel = "Documentation";
43
- this.sidebarLandmarkLabel = computed(() => this.isFr() ? "Sommaire de la documentation" : "Documentation menu", ...ngDevMode ? [{ debugName: "sidebarLandmarkLabel" }] : /* istanbul ignore next */ []);
44
- this.tocLabel = computed(() => this.isFr() ? "Sur cette page" : "On this page", ...ngDevMode ? [{ debugName: "tocLabel" }] : /* istanbul ignore next */ []);
43
+ this.sidebarLandmarkLabel = computed(() => this.isFr() ? "Sommaire de la documentation" : "Documentation menu", ...ngDevMode ? [{ debugName: "sidebarLandmarkLabel" }] : /* istanbul ignore next */ []);
44
+ this.tocLabel = computed(() => this.isFr() ? "Sur cette page" : "On this page", ...ngDevMode ? [{ debugName: "tocLabel" }] : /* istanbul ignore next */ []);
45
45
  this.pagerLabel = "Pagination";
46
- this.prevLabel = computed(() => this.isFr() ? "Précédent" : "Previous", ...ngDevMode ? [{ debugName: "prevLabel" }] : /* istanbul ignore next */ []);
47
- this.nextLabel = computed(() => this.isFr() ? "Suivant" : "Next", ...ngDevMode ? [{ debugName: "nextLabel" }] : /* istanbul ignore next */ []);
48
- this.versionLabel = computed(() => this.isFr() ? "Version" : "Version", ...ngDevMode ? [{ debugName: "versionLabel" }] : /* istanbul ignore next */ []);
46
+ this.prevLabel = computed(() => this.isFr() ? "Précédent" : "Previous", ...ngDevMode ? [{ debugName: "prevLabel" }] : /* istanbul ignore next */ []);
47
+ this.nextLabel = computed(() => this.isFr() ? "Suivant" : "Next", ...ngDevMode ? [{ debugName: "nextLabel" }] : /* istanbul ignore next */ []);
48
+ this.versionLabel = computed(() => this.isFr() ? "Version" : "Version", ...ngDevMode ? [{ debugName: "versionLabel" }] : /* istanbul ignore next */ []);
49
49
  afterNextRender(() => {
50
50
  if (!isPlatformBrowser(this.platformId)) return;
51
51
  const host = this.contentHost()?.nativeElement;
@@ -1 +1 @@
1
- {"version":3,"file":"ferrlabs-ui-ng-docs.mjs","names":[],"sources":["../../docs/docs-layout.component.ts"],"sourcesContent":["import {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n PLATFORM_ID,\n signal,\n viewChild,\n} from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { DocSection, DocVersion, DocsLang } from './docs-types';\n\ninterface TocEntry {\n readonly id: string;\n readonly text: string;\n readonly level: number;\n}\n\ninterface SiblingLink {\n readonly label: string;\n readonly href: string;\n}\n\n@Component({\n selector: 'flr-docs-layout',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"docs\">\n <button\n class=\"docs__sidebar-toggle mono\"\n type=\"button\"\n (click)=\"sidebarOpen.set(!sidebarOpen())\"\n >\n {{ sidebarLabel() }}\n </button>\n\n <aside\n class=\"docs__sidebar\"\n [class.is-open]=\"sidebarOpen()\"\n [attr.aria-label]=\"sidebarLandmarkLabel()\"\n >\n @if (versions().length) {\n <div class=\"docs__versions mono\" translate=\"no\">\n <label class=\"docs__versions-label\" for=\"flr-docs-version\">{{ versionLabel() }}</label>\n <select\n id=\"flr-docs-version\"\n class=\"docs__version-select\"\n (change)=\"onVersionChange($event)\"\n >\n @for (v of versions(); track v.slug) {\n <option [value]=\"versionHref(v.slug)\" [selected]=\"v.slug === version()\">\n {{ v.label }}\n </option>\n }\n </select>\n </div>\n }\n\n <nav class=\"docs__nav\" [attr.aria-label]=\"navLabel\">\n @for (section of nav(); track section.label) {\n <details class=\"docs__section\" open>\n <summary class=\"mono docs__section-label\">{{ section.label }}</summary>\n <ul class=\"docs__section-list\">\n @for (item of section.items; track item.slug) {\n <li>\n <a\n [href]=\"docHref(item.slug)\"\n class=\"docs__link\"\n [class.is-active]=\"item.slug === slug()\"\n (click)=\"sidebarOpen.set(false)\"\n >{{ item.label }}</a\n >\n </li>\n }\n </ul>\n </details>\n }\n </nav>\n </aside>\n\n <main class=\"docs__main\">\n <article #content class=\"ferr-prose docs__prose\">\n <ng-content />\n </article>\n\n <nav class=\"docs__pager\" [attr.aria-label]=\"pagerLabel\">\n @if (prev(); as p) {\n <a [href]=\"p.href\" class=\"docs__pager-link docs__pager-link--prev\">\n <span class=\"mono docs__pager-dir\">{{ prevLabel() }}</span>\n <span class=\"docs__pager-title\">{{ p.label }}</span>\n </a>\n } @else {\n <span></span>\n }\n @if (next(); as n) {\n <a [href]=\"n.href\" class=\"docs__pager-link docs__pager-link--next\">\n <span class=\"mono docs__pager-dir\">{{ nextLabel() }}</span>\n <span class=\"docs__pager-title\">{{ n.label }}</span>\n </a>\n }\n </nav>\n </main>\n\n <aside class=\"docs__toc\" [attr.aria-label]=\"tocLabel()\">\n @if (toc().length) {\n <div class=\"mono docs__toc-label\">{{ tocLabel() }}</div>\n <ul class=\"docs__toc-list\">\n @for (entry of toc(); track entry.id) {\n <li [class.docs__toc-item--sub]=\"entry.level === 3\">\n <a [href]=\"pagePath() + '#' + entry.id\" class=\"docs__toc-link\">{{ entry.text }}</a>\n </li>\n }\n </ul>\n }\n </aside>\n </div>\n `,\n styles: `\n :host {\n display: block;\n }\n .docs {\n display: grid;\n grid-template-columns: 260px minmax(0, 1fr) 220px;\n gap: 48px;\n max-width: 1440px;\n margin: 0 auto;\n padding: 48px 40px 96px;\n align-items: start;\n }\n .docs__sidebar-toggle {\n display: none;\n grid-column: 1 / -1;\n justify-self: start;\n border: 1px solid var(--paper-rule);\n border-radius: 999px;\n background: transparent;\n color: var(--paper-ink);\n padding: 8px 16px;\n font-size: 11px;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n cursor: pointer;\n }\n .docs__sidebar {\n position: sticky;\n top: 96px;\n align-self: start;\n max-height: calc(100dvh - 120px);\n overflow-y: auto;\n padding-right: 8px;\n }\n .docs__versions {\n display: flex;\n align-items: center;\n gap: 10px;\n margin-bottom: 28px;\n }\n .docs__versions-label {\n font-size: 11px;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n color: var(--paper-ink-3);\n }\n .docs__version-select {\n flex: 1;\n appearance: none;\n -webkit-appearance: none;\n font: inherit;\n font-size: 12px;\n letter-spacing: 0.04em;\n color: var(--paper-ink);\n background-color: transparent;\n background-image: url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>\");\n background-repeat: no-repeat;\n background-position: right 10px center;\n border: 1px solid var(--paper-rule);\n border-radius: 8px;\n padding: 7px 30px 7px 12px;\n cursor: pointer;\n transition:\n border-color 160ms ease,\n color 160ms ease;\n }\n .docs__version-select:hover,\n .docs__version-select:focus-visible {\n border-color: var(--accent);\n color: var(--accent);\n outline: none;\n }\n .docs__section {\n margin-bottom: 4px;\n }\n .docs__section[open] {\n margin-bottom: 20px;\n }\n .docs__section-label {\n font-size: 11px;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n color: var(--paper-ink-3);\n cursor: pointer;\n list-style: none;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 4px 0;\n user-select: none;\n }\n .docs__section[open] > .docs__section-label {\n margin-bottom: 12px;\n }\n .docs__section-label::-webkit-details-marker {\n display: none;\n }\n .docs__section-label::after {\n content: '';\n width: 6px;\n height: 6px;\n border-right: 1.5px solid currentColor;\n border-bottom: 1.5px solid currentColor;\n transform: rotate(45deg) translate(-2px, -2px);\n transition: transform 120ms ease;\n flex: none;\n opacity: 0.7;\n }\n .docs__section[open] > .docs__section-label::after {\n transform: rotate(-135deg) translate(-2px, -2px);\n }\n .docs__section-label:hover {\n color: var(--paper-ink-2);\n }\n .docs__section-label:focus-visible {\n outline: 2px solid var(--paper-accent, currentColor);\n outline-offset: 2px;\n border-radius: 2px;\n }\n @media (prefers-reduced-motion: reduce) {\n .docs__section-label::after {\n transition: none;\n }\n }\n .docs__section-list {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n .docs__link {\n display: block;\n font-size: 14px;\n line-height: 1.4;\n padding: 5px 12px;\n border-left: 2px solid transparent;\n color: var(--paper-ink-2);\n text-decoration: none;\n transition:\n color 160ms ease,\n border-color 160ms ease,\n background 160ms ease;\n }\n .docs__link:hover {\n color: var(--paper-ink);\n }\n .docs__link.is-active {\n color: var(--accent);\n border-left-color: var(--accent);\n background: var(--accent-soft);\n font-weight: 500;\n }\n .docs__main {\n min-width: 0;\n }\n .docs__prose {\n max-width: 760px;\n }\n .docs__pager {\n display: flex;\n justify-content: space-between;\n gap: 16px;\n margin-top: 72px;\n padding-top: 32px;\n border-top: 1px solid var(--paper-rule);\n }\n .docs__pager-link {\n display: flex;\n flex-direction: column;\n gap: 6px;\n padding: 16px 20px;\n border: 1px solid var(--paper-rule);\n border-radius: 12px;\n text-decoration: none;\n transition:\n border-color 160ms ease,\n transform 160ms ease;\n max-width: 48%;\n }\n .docs__pager-link:hover {\n border-color: var(--accent);\n transform: translateY(-1px);\n }\n .docs__pager-link--next {\n text-align: right;\n align-items: flex-end;\n }\n .docs__pager-dir {\n font-size: 10px;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n color: var(--paper-ink-3);\n }\n .docs__pager-title {\n font-family: var(--font-display);\n font-weight: 600;\n font-size: 16px;\n color: var(--paper-ink);\n }\n .docs__toc {\n position: sticky;\n top: 96px;\n align-self: start;\n max-height: calc(100dvh - 120px);\n overflow-y: auto;\n }\n .docs__toc-label {\n font-size: 11px;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n color: var(--paper-ink-3);\n margin-bottom: 14px;\n }\n .docs__toc-list {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-left: 1px solid var(--paper-rule);\n }\n .docs__toc-item--sub {\n padding-left: 14px;\n }\n .docs__toc-link {\n display: block;\n font-size: 13px;\n line-height: 1.4;\n padding-left: 14px;\n margin-left: -1px;\n border-left: 1px solid transparent;\n color: var(--paper-ink-3);\n text-decoration: none;\n transition:\n color 160ms ease,\n border-color 160ms ease;\n }\n .docs__toc-link:hover {\n color: var(--accent);\n border-left-color: var(--accent);\n }\n @media (max-width: 1180px) {\n .docs {\n grid-template-columns: 240px minmax(0, 1fr);\n }\n .docs__toc {\n display: none;\n }\n }\n @media (max-width: 880px) {\n .docs {\n grid-template-columns: 1fr;\n gap: 24px;\n padding: 24px 20px 80px;\n }\n .docs__sidebar-toggle {\n display: inline-flex;\n }\n .docs__sidebar {\n position: static;\n max-height: none;\n overflow: visible;\n display: none;\n padding: 0;\n }\n .docs__sidebar.is-open {\n display: block;\n }\n .docs__pager-link {\n max-width: none;\n flex: 1;\n }\n }\n `,\n})\nexport class DocsLayoutComponent {\n readonly slug = input.required<string>();\n readonly nav = input.required<readonly DocSection[]>();\n readonly versions = input<readonly DocVersion[]>([]);\n readonly lang = input<DocsLang>('en');\n readonly version = input('current');\n readonly docsSegment = input('docs');\n\n protected readonly sidebarOpen = signal(false);\n protected readonly toc = signal<readonly TocEntry[]>([]);\n protected readonly pagePath = signal('');\n\n private readonly platformId = inject(PLATFORM_ID);\n private readonly contentHost = viewChild<ElementRef<HTMLElement>>('content');\n\n constructor() {\n afterNextRender(() => {\n if (!isPlatformBrowser(this.platformId)) {\n return;\n }\n const host = this.contentHost()?.nativeElement;\n if (!host) {\n return;\n }\n this.pagePath.set(window.location.pathname);\n const headings = Array.from(host.querySelectorAll<HTMLElement>('h2, h3'));\n this.toc.set(\n headings\n .filter((h) => h.id)\n .map((h) => ({\n id: h.id,\n text: h.textContent?.trim() ?? '',\n level: h.tagName === 'H3' ? 3 : 2,\n })),\n );\n });\n }\n\n private readonly isFr = computed(() => this.lang() === 'fr');\n\n private readonly versionPath = computed(() =>\n this.version() === 'current' ? '' : `/${this.version()}`,\n );\n\n private readonly base = computed(\n () => `${this.isFr() ? '/fr' : ''}${this.versionPath()}/${this.docsSegment()}`,\n );\n\n private readonly order = computed(() => this.nav().flatMap((s) => s.items));\n\n private readonly currentIndex = computed(() =>\n this.order().findIndex((item) => item.slug === this.slug()),\n );\n\n protected readonly prev = computed<SiblingLink | null>(() => {\n const i = this.currentIndex();\n if (i <= 0) {\n return null;\n }\n const item = this.order()[i - 1];\n return { label: item.label, href: this.docHref(item.slug) };\n });\n\n protected readonly next = computed<SiblingLink | null>(() => {\n const order = this.order();\n const i = this.currentIndex();\n if (i < 0 || i >= order.length - 1) {\n return null;\n }\n const item = order[i + 1];\n return { label: item.label, href: this.docHref(item.slug) };\n });\n\n protected readonly sidebarLabel = computed(() =>\n this.sidebarOpen() ? (this.isFr() ? 'Fermer' : 'Close') : this.isFr() ? 'Sommaire' : 'Menu',\n );\n protected readonly navLabel = 'Documentation';\n protected readonly sidebarLandmarkLabel = computed(() =>\n this.isFr() ? 'Sommaire de la documentation' : 'Documentation menu',\n );\n protected readonly tocLabel = computed(() => (this.isFr() ? 'Sur cette page' : 'On this page'));\n protected readonly pagerLabel = 'Pagination';\n protected readonly prevLabel = computed(() => (this.isFr() ? 'Précédent' : 'Previous'));\n protected readonly nextLabel = computed(() => (this.isFr() ? 'Suivant' : 'Next'));\n protected readonly versionLabel = computed(() => (this.isFr() ? 'Version' : 'Version'));\n\n protected onVersionChange(event: Event): void {\n if (!isPlatformBrowser(this.platformId)) {\n return;\n }\n const target = event.target as HTMLSelectElement;\n if (target.value) {\n window.location.assign(target.value);\n }\n }\n\n protected docHref(slug: string): string {\n return `${this.base()}/${slug}`;\n }\n\n protected versionHref(version: string): string {\n const prefix = this.isFr() ? '/fr' : '';\n const versionPath = version === 'current' ? '' : `/${version}`;\n return `${prefix}${versionPath}/${this.docsSegment()}/${this.slug()}`;\n }\n}\n"],"mappings":";;;AAgZA,IAAa,sBAAb,MAAa,oBAAmB;CAe9B,cAAA;EAdS,KAAA,OAAO,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,iCAAA,CAAA,CAAA;EAC/B,KAAA,MAAM,MAAM,SAAiC,GAAA,YAAA,CAAA,EAAA,WAAA,MAAA,CAAA,iCAAA,CAAA,CAAA;EAC7C,KAAA,WAAW,MAA6B,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,iCAAA,CAAA,CAAA;EAC3C,KAAA,OAAO,MAAgB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,iCAAA,CAAA,CAAA;EAC5B,KAAA,UAAU,MAAM,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,iCAAA,CAAA,CAAA;EAC1B,KAAA,cAAc,MAAM,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,iCAAA,CAAA,CAAA;EAEjB,KAAA,cAAc,OAAO,OAAM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AA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,MAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,SAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,aAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,WAAS,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
1
+ {"version":3,"file":"ferrlabs-ui-ng-docs.mjs","names":[],"sources":["../../docs/docs-layout.component.ts"],"sourcesContent":["import {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n PLATFORM_ID,\n signal,\n viewChild,\n} from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { DocSection, DocVersion, DocsLang } from './docs-types';\n\ninterface TocEntry {\n readonly id: string;\n readonly text: string;\n readonly level: number;\n}\n\ninterface SiblingLink {\n readonly label: string;\n readonly href: string;\n}\n\n@Component({\n selector: 'flr-docs-layout',\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <div class=\"docs\">\n <button\n class=\"docs__sidebar-toggle mono\"\n type=\"button\"\n (click)=\"sidebarOpen.set(!sidebarOpen())\"\n >\n {{ sidebarLabel() }}\n </button>\n\n <aside\n class=\"docs__sidebar\"\n [class.is-open]=\"sidebarOpen()\"\n [attr.aria-label]=\"sidebarLandmarkLabel()\"\n >\n @if (versions().length) {\n <div class=\"docs__versions mono\" translate=\"no\">\n <label class=\"docs__versions-label\" for=\"flr-docs-version\">{{ versionLabel() }}</label>\n <select\n id=\"flr-docs-version\"\n class=\"docs__version-select\"\n (change)=\"onVersionChange($event)\"\n >\n @for (v of versions(); track v.slug) {\n <option [value]=\"versionHref(v.slug)\" [selected]=\"v.slug === version()\">\n {{ v.label }}\n </option>\n }\n </select>\n </div>\n }\n\n <nav class=\"docs__nav\" [attr.aria-label]=\"navLabel\">\n @for (section of nav(); track section.label) {\n <details class=\"docs__section\" open>\n <summary class=\"mono docs__section-label\">{{ section.label }}</summary>\n <ul class=\"docs__section-list\">\n @for (item of section.items; track item.slug) {\n <li>\n <a\n [href]=\"docHref(item.slug)\"\n class=\"docs__link\"\n [class.is-active]=\"item.slug === slug()\"\n (click)=\"sidebarOpen.set(false)\"\n >{{ item.label }}</a\n >\n </li>\n }\n </ul>\n </details>\n }\n </nav>\n </aside>\n\n <main class=\"docs__main\">\n <article #content class=\"ferr-prose docs__prose\">\n <ng-content />\n </article>\n\n <nav class=\"docs__pager\" [attr.aria-label]=\"pagerLabel\">\n @if (prev(); as p) {\n <a [href]=\"p.href\" class=\"docs__pager-link docs__pager-link--prev\">\n <span class=\"mono docs__pager-dir\">{{ prevLabel() }}</span>\n <span class=\"docs__pager-title\">{{ p.label }}</span>\n </a>\n } @else {\n <span></span>\n }\n @if (next(); as n) {\n <a [href]=\"n.href\" class=\"docs__pager-link docs__pager-link--next\">\n <span class=\"mono docs__pager-dir\">{{ nextLabel() }}</span>\n <span class=\"docs__pager-title\">{{ n.label }}</span>\n </a>\n }\n </nav>\n </main>\n\n <aside class=\"docs__toc\" [attr.aria-label]=\"tocLabel()\">\n @if (toc().length) {\n <div class=\"mono docs__toc-label\">{{ tocLabel() }}</div>\n <ul class=\"docs__toc-list\">\n @for (entry of toc(); track entry.id) {\n <li [class.docs__toc-item--sub]=\"entry.level === 3\">\n <a [href]=\"pagePath() + '#' + entry.id\" class=\"docs__toc-link\">{{ entry.text }}</a>\n </li>\n }\n </ul>\n }\n </aside>\n </div>\n `,\n styles: `\n :host {\n display: block;\n }\n .docs {\n display: grid;\n grid-template-columns: 260px minmax(0, 1fr) 220px;\n gap: 48px;\n max-width: 1440px;\n margin: 0 auto;\n padding: 48px 40px 96px;\n align-items: start;\n }\n .docs__sidebar-toggle {\n display: none;\n grid-column: 1 / -1;\n justify-self: start;\n border: 1px solid var(--paper-rule);\n border-radius: 999px;\n background: transparent;\n color: var(--paper-ink);\n padding: 8px 16px;\n font-size: 11px;\n letter-spacing: 0.08em;\n text-transform: uppercase;\n cursor: pointer;\n }\n .docs__sidebar {\n position: sticky;\n top: 96px;\n align-self: start;\n max-height: calc(100dvh - 120px);\n overflow-y: auto;\n padding-right: 8px;\n }\n .docs__versions {\n display: flex;\n align-items: center;\n gap: 10px;\n margin-bottom: 28px;\n }\n .docs__versions-label {\n font-size: 11px;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n color: var(--paper-ink-3);\n }\n .docs__version-select {\n flex: 1;\n appearance: none;\n -webkit-appearance: none;\n font: inherit;\n font-size: 12px;\n letter-spacing: 0.04em;\n color: var(--paper-ink);\n background-color: transparent;\n background-image: url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>\");\n background-repeat: no-repeat;\n background-position: right 10px center;\n border: 1px solid var(--paper-rule);\n border-radius: 8px;\n padding: 7px 30px 7px 12px;\n cursor: pointer;\n transition:\n border-color 160ms ease,\n color 160ms ease;\n }\n .docs__version-select:hover,\n .docs__version-select:focus-visible {\n border-color: var(--accent);\n color: var(--accent);\n outline: none;\n }\n .docs__section {\n margin-bottom: 4px;\n }\n .docs__section[open] {\n margin-bottom: 20px;\n }\n .docs__section-label {\n font-size: 11px;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n color: var(--paper-ink-3);\n cursor: pointer;\n list-style: none;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 8px;\n padding: 4px 0;\n user-select: none;\n }\n .docs__section[open] > .docs__section-label {\n margin-bottom: 12px;\n }\n .docs__section-label::-webkit-details-marker {\n display: none;\n }\n .docs__section-label::after {\n content: '';\n width: 6px;\n height: 6px;\n border-right: 1.5px solid currentColor;\n border-bottom: 1.5px solid currentColor;\n transform: rotate(45deg) translate(-2px, -2px);\n transition: transform 120ms ease;\n flex: none;\n opacity: 0.7;\n }\n .docs__section[open] > .docs__section-label::after {\n transform: rotate(-135deg) translate(-2px, -2px);\n }\n .docs__section-label:hover {\n color: var(--paper-ink-2);\n }\n .docs__section-label:focus-visible {\n outline: 2px solid var(--paper-accent, currentColor);\n outline-offset: 2px;\n border-radius: 2px;\n }\n @media (prefers-reduced-motion: reduce) {\n .docs__section-label::after {\n transition: none;\n }\n }\n .docs__section-list {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n .docs__link {\n display: block;\n font-size: 14px;\n line-height: 1.4;\n padding: 5px 12px;\n border-left: 2px solid transparent;\n color: var(--paper-ink-2);\n text-decoration: none;\n transition:\n color 160ms ease,\n border-color 160ms ease,\n background 160ms ease;\n }\n .docs__link:hover {\n color: var(--paper-ink);\n }\n .docs__link.is-active {\n color: var(--accent);\n border-left-color: var(--accent);\n background: var(--accent-soft);\n font-weight: 500;\n }\n .docs__main {\n min-width: 0;\n }\n .docs__prose {\n max-width: 760px;\n }\n .docs__pager {\n display: flex;\n justify-content: space-between;\n gap: 16px;\n margin-top: 72px;\n padding-top: 32px;\n border-top: 1px solid var(--paper-rule);\n }\n .docs__pager-link {\n display: flex;\n flex-direction: column;\n gap: 6px;\n padding: 16px 20px;\n border: 1px solid var(--paper-rule);\n border-radius: 12px;\n text-decoration: none;\n transition:\n border-color 160ms ease,\n transform 160ms ease;\n max-width: 48%;\n }\n .docs__pager-link:hover {\n border-color: var(--accent);\n transform: translateY(-1px);\n }\n .docs__pager-link--next {\n text-align: right;\n align-items: flex-end;\n }\n .docs__pager-dir {\n font-size: 10px;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n color: var(--paper-ink-3);\n }\n .docs__pager-title {\n font-family: var(--font-display);\n font-weight: 600;\n font-size: 16px;\n color: var(--paper-ink);\n }\n .docs__toc {\n position: sticky;\n top: 96px;\n align-self: start;\n max-height: calc(100dvh - 120px);\n overflow-y: auto;\n }\n .docs__toc-label {\n font-size: 11px;\n letter-spacing: 0.14em;\n text-transform: uppercase;\n color: var(--paper-ink-3);\n margin-bottom: 14px;\n }\n .docs__toc-list {\n list-style: none;\n margin: 0;\n padding: 0;\n display: flex;\n flex-direction: column;\n gap: 8px;\n border-left: 1px solid var(--paper-rule);\n }\n .docs__toc-item--sub {\n padding-left: 14px;\n }\n .docs__toc-link {\n display: block;\n font-size: 13px;\n line-height: 1.4;\n padding-left: 14px;\n margin-left: -1px;\n border-left: 1px solid transparent;\n color: var(--paper-ink-3);\n text-decoration: none;\n transition:\n color 160ms ease,\n border-color 160ms ease;\n }\n .docs__toc-link:hover {\n color: var(--accent);\n border-left-color: var(--accent);\n }\n @media (max-width: 1180px) {\n .docs {\n grid-template-columns: 240px minmax(0, 1fr);\n }\n .docs__toc {\n display: none;\n }\n }\n @media (max-width: 880px) {\n .docs {\n grid-template-columns: 1fr;\n gap: 24px;\n padding: 24px 20px 80px;\n }\n .docs__sidebar-toggle {\n display: inline-flex;\n }\n .docs__sidebar {\n position: static;\n max-height: none;\n overflow: visible;\n display: none;\n padding: 0;\n }\n .docs__sidebar.is-open {\n display: block;\n }\n .docs__pager-link {\n max-width: none;\n flex: 1;\n }\n }\n `,\n})\nexport class DocsLayoutComponent {\n readonly slug = input.required<string>();\n readonly nav = input.required<readonly DocSection[]>();\n readonly versions = input<readonly DocVersion[]>([]);\n readonly lang = input<DocsLang>('en');\n readonly version = input('current');\n readonly docsSegment = input('docs');\n\n protected readonly sidebarOpen = signal(false);\n protected readonly toc = signal<readonly TocEntry[]>([]);\n protected readonly pagePath = signal('');\n\n private readonly platformId = inject(PLATFORM_ID);\n private readonly contentHost = viewChild<ElementRef<HTMLElement>>('content');\n\n constructor() {\n afterNextRender(() => {\n if (!isPlatformBrowser(this.platformId)) {\n return;\n }\n const host = this.contentHost()?.nativeElement;\n if (!host) {\n return;\n }\n this.pagePath.set(window.location.pathname);\n const headings = Array.from(host.querySelectorAll<HTMLElement>('h2, h3'));\n this.toc.set(\n headings\n .filter((h) => h.id)\n .map((h) => ({\n id: h.id,\n text: h.textContent?.trim() ?? '',\n level: h.tagName === 'H3' ? 3 : 2,\n })),\n );\n });\n }\n\n private readonly isFr = computed(() => this.lang() === 'fr');\n\n private readonly versionPath = computed(() =>\n this.version() === 'current' ? '' : `/${this.version()}`,\n );\n\n private readonly base = computed(\n () => `${this.isFr() ? '/fr' : ''}${this.versionPath()}/${this.docsSegment()}`,\n );\n\n private readonly order = computed(() => this.nav().flatMap((s) => s.items));\n\n private readonly currentIndex = computed(() =>\n this.order().findIndex((item) => item.slug === this.slug()),\n );\n\n protected readonly prev = computed<SiblingLink | null>(() => {\n const i = this.currentIndex();\n if (i <= 0) {\n return null;\n }\n const item = this.order()[i - 1];\n return { label: item.label, href: this.docHref(item.slug) };\n });\n\n protected readonly next = computed<SiblingLink | null>(() => {\n const order = this.order();\n const i = this.currentIndex();\n if (i < 0 || i >= order.length - 1) {\n return null;\n }\n const item = order[i + 1];\n return { label: item.label, href: this.docHref(item.slug) };\n });\n\n protected readonly sidebarLabel = computed(() =>\n this.sidebarOpen() ? (this.isFr() ? 'Fermer' : 'Close') : this.isFr() ? 'Sommaire' : 'Menu',\n );\n protected readonly navLabel = 'Documentation';\n protected readonly sidebarLandmarkLabel = computed(() =>\n this.isFr() ? 'Sommaire de la documentation' : 'Documentation menu',\n );\n protected readonly tocLabel = computed(() => (this.isFr() ? 'Sur cette page' : 'On this page'));\n protected readonly pagerLabel = 'Pagination';\n protected readonly prevLabel = computed(() => (this.isFr() ? 'Précédent' : 'Previous'));\n protected readonly nextLabel = computed(() => (this.isFr() ? 'Suivant' : 'Next'));\n protected readonly versionLabel = computed(() => (this.isFr() ? 'Version' : 'Version'));\n\n protected onVersionChange(event: Event): void {\n if (!isPlatformBrowser(this.platformId)) {\n return;\n }\n const target = event.target as HTMLSelectElement;\n if (target.value) {\n window.location.assign(target.value);\n }\n }\n\n protected docHref(slug: string): string {\n return `${this.base()}/${slug}`;\n }\n\n protected versionHref(version: string): string {\n const prefix = this.isFr() ? '/fr' : '';\n const versionPath = version === 'current' ? '' : `/${version}`;\n return `${prefix}${versionPath}/${this.docsSegment()}/${this.slug()}`;\n }\n}\n"],"mappings":";;;AAgZA,IAAa,sBAAb,MAAa,oBAAmB;CAe9B,cAAA;EAdS,KAAA,OAAO,MAAM,SAAkB,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAC/B,KAAA,MAAM,MAAM,SAAiC,GAAA,YAAA,CAAA,EAAA,WAAA,MAAA,CAAA,+BAAA,CAAA,CAAA;EAC7C,KAAA,WAAW,MAA6B,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;EAC3C,KAAA,OAAO,MAAgB,MAAK,GAAA,YAAA,CAAA,EAAA,WAAA,OAAA,CAAA,+BAAA,CAAA,CAAA;EAC5B,KAAA,UAAU,MAAM,WAAU,GAAA,YAAA,CAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EAC1B,KAAA,cAAc,MAAM,QAAO,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;EAEjB,KAAA,cAAc,OAAO,OAAM,GAAA,YAAA,CAAA,EAAA,WAAA,cAAA,CAAA,+BAAA,CAAA,CAAA;EAC3B,KAAA,MAAM,OAA4B,CAAA,GAAG,GAAA,YAAA,CAAA,EAAA,WAAA,MAAA,CAAA,+B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