@ferrlabs/ui-ng 1.39.0 → 1.40.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -65,10 +65,10 @@ var DocsLayoutComponent = class DocsLayoutComponent {
|
|
|
65
65
|
if (target.value) window.location.assign(target.value);
|
|
66
66
|
}
|
|
67
67
|
docHref(slug) {
|
|
68
|
-
return `${this.base()}/${slug}
|
|
68
|
+
return `${this.base()}/${slug}/`;
|
|
69
69
|
}
|
|
70
70
|
versionHref(version) {
|
|
71
|
-
return `${this.isFr() ? "/fr" : ""}${version === "current" ? "" : `/${version}`}/${this.docsSegment()}/${this.slug()}
|
|
71
|
+
return `${this.isFr() ? "/fr" : ""}${version === "current" ? "" : `/${version}`}/${this.docsSegment()}/${this.slug()}/`;
|
|
72
72
|
}
|
|
73
73
|
static {
|
|
74
74
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
@@ -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,+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,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AAA;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,+BAAA,CAAA,CAAA;EACrC,KAAA,WAAW,OAAO,IAAG,GAAA,YAAA,CAAA,EAAA,WAAA,WAAA,CAAA,+BAAA,CAAA,CAAA;EAEvB,KAAA,aAAa,OAAO,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,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,6 +1,6 @@
|
|
|
1
1
|
import { DOCUMENT, Location, NgTemplateOutlet } from "@angular/common";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, Injectable, InjectionToken, LOCALE_ID, ViewContainerRef, ViewEncapsulation, afterRenderEffect, computed, contentChildren, effect, forwardRef, inject, input, makeEnvironmentProviders, model, output, signal, untracked, viewChild } from "@angular/core";
|
|
3
|
+
import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, Injectable, InjectionToken, LOCALE_ID, ViewContainerRef, ViewEncapsulation, afterNextRender, afterRenderEffect, computed, contentChildren, effect, forwardRef, inject, input, makeEnvironmentProviders, model, output, signal, untracked, viewChild, viewChildren } from "@angular/core";
|
|
4
4
|
import * as i1$1 from "@angular/forms";
|
|
5
5
|
import { FormsModule, NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
6
6
|
import * as i1$2 from "@angular/cdk/a11y";
|
|
@@ -12900,6 +12900,14 @@ function localeBase(locale) {
|
|
|
12900
12900
|
function isAbsolute(href) {
|
|
12901
12901
|
return /^[a-z]+:/i.test(href) || href.startsWith("//") || href.startsWith("#");
|
|
12902
12902
|
}
|
|
12903
|
+
function withTrailingSlash(href) {
|
|
12904
|
+
const cut = href.search(/[?#]/);
|
|
12905
|
+
const path = cut === -1 ? href : href.slice(0, cut);
|
|
12906
|
+
const suffix = cut === -1 ? "" : href.slice(cut);
|
|
12907
|
+
const lastSegment = path.slice(path.lastIndexOf("/") + 1);
|
|
12908
|
+
if (isAbsolute(href) || path === "" || path.endsWith("/") || lastSegment.includes(".")) return href;
|
|
12909
|
+
return `${path}/${suffix}`;
|
|
12910
|
+
}
|
|
12903
12911
|
function withLocaleBase(locale, href) {
|
|
12904
12912
|
if (isAbsolute(href)) return href;
|
|
12905
12913
|
const base = localeBase(locale);
|
|
@@ -12915,7 +12923,7 @@ function localeSwitchHref(target, path) {
|
|
|
12915
12923
|
const bare = stripLocalePrefix(path);
|
|
12916
12924
|
const base = localeBase(target);
|
|
12917
12925
|
if (bare === "/" || bare === "") return base ? `${base}/` : "/";
|
|
12918
|
-
return `${base}${bare}
|
|
12926
|
+
return withTrailingSlash(`${base}${bare}`);
|
|
12919
12927
|
}
|
|
12920
12928
|
function resolveLocale(localeId) {
|
|
12921
12929
|
return localeId && localeId.toLowerCase().startsWith("fr") ? "fr" : "en";
|
|
@@ -12933,12 +12941,12 @@ var SiteNavbarComponent = class SiteNavbarComponent {
|
|
|
12933
12941
|
this.homeHref = withLocaleBase(this.locale, "/");
|
|
12934
12942
|
this.links = this.chrome.navLinks.map((link) => ({
|
|
12935
12943
|
label: link.label,
|
|
12936
|
-
href: withLocaleBase(this.locale, link.href),
|
|
12944
|
+
href: withTrailingSlash(withLocaleBase(this.locale, link.href)),
|
|
12937
12945
|
external: link.external ?? false
|
|
12938
12946
|
}));
|
|
12939
12947
|
this.cta = this.chrome.cta ? {
|
|
12940
12948
|
label: this.chrome.cta.label,
|
|
12941
|
-
href: withLocaleBase(this.locale, this.chrome.cta.href)
|
|
12949
|
+
href: withTrailingSlash(withLocaleBase(this.locale, this.chrome.cta.href))
|
|
12942
12950
|
} : null;
|
|
12943
12951
|
this.scrolled = signal(false, ...ngDevMode ? [{ debugName: "scrolled" }] : /* istanbul ignore next */ []);
|
|
12944
12952
|
this.mobileOpen = signal(false, ...ngDevMode ? [{ debugName: "mobileOpen" }] : /* istanbul ignore next */ []);
|
|
@@ -13154,7 +13162,7 @@ var SiteFooterComponent = class SiteFooterComponent {
|
|
|
13154
13162
|
title: col.title,
|
|
13155
13163
|
links: col.links.map((link) => ({
|
|
13156
13164
|
label: link.label,
|
|
13157
|
-
href: link.external ? link.href : withLocaleBase(this.locale, link.href),
|
|
13165
|
+
href: link.external ? link.href : withTrailingSlash(withLocaleBase(this.locale, link.href)),
|
|
13158
13166
|
external: link.external ?? false
|
|
13159
13167
|
}))
|
|
13160
13168
|
}));
|
|
@@ -13305,7 +13313,7 @@ var SiteShellComponent = class SiteShellComponent {
|
|
|
13305
13313
|
effect(() => {
|
|
13306
13314
|
const title = this.title();
|
|
13307
13315
|
const description = this.description();
|
|
13308
|
-
const path = this.location.path() || "/";
|
|
13316
|
+
const path = this.location.path().split(/[?#]/)[0] || "/";
|
|
13309
13317
|
const canonical = this.canonical() ?? `${this.chrome.origin}${localeSwitchHref(this.locale, path)}`;
|
|
13310
13318
|
if (title) {
|
|
13311
13319
|
this.titleService.setTitle(title);
|
|
@@ -13574,6 +13582,17 @@ var SegmentedComponent = class SegmentedComponent {
|
|
|
13574
13582
|
...ngDevMode ? { debugName: "ariaLabel" } : /* istanbul ignore next */ {},
|
|
13575
13583
|
alias: "aria-label"
|
|
13576
13584
|
});
|
|
13585
|
+
this.group = viewChild.required("group", ...ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []);
|
|
13586
|
+
this.thumb = viewChild.required("thumb", ...ngDevMode ? [{ debugName: "thumb" }] : /* istanbul ignore next */ []);
|
|
13587
|
+
this.buttons = viewChildren("optionButton", ...ngDevMode ? [{ debugName: "buttons" }] : /* istanbul ignore next */ []);
|
|
13588
|
+
this.selectedIndex = computed(() => this.options().findIndex((o) => o.value === this.value()), ...ngDevMode ? [{ debugName: "selectedIndex" }] : /* istanbul ignore next */ []);
|
|
13589
|
+
afterRenderEffect(() => this.placeThumb(this.selectedIndex()));
|
|
13590
|
+
const destroyRef = inject(DestroyRef);
|
|
13591
|
+
afterNextRender(() => {
|
|
13592
|
+
const observer = new ResizeObserver(() => this.placeThumb(this.selectedIndex()));
|
|
13593
|
+
observer.observe(this.group().nativeElement);
|
|
13594
|
+
destroyRef.onDestroy(() => observer.disconnect());
|
|
13595
|
+
});
|
|
13577
13596
|
}
|
|
13578
13597
|
trustedIcon(markup) {
|
|
13579
13598
|
return markup && isTrustedIconMarkup(markup) ? this.sanitizer.bypassSecurityTrustHtml(markup) : null;
|
|
@@ -13581,7 +13600,7 @@ var SegmentedComponent = class SegmentedComponent {
|
|
|
13581
13600
|
select(option) {
|
|
13582
13601
|
this.value.set(option.value);
|
|
13583
13602
|
}
|
|
13584
|
-
handleKeydown(event, index
|
|
13603
|
+
handleKeydown(event, index) {
|
|
13585
13604
|
const options = this.options();
|
|
13586
13605
|
const step = {
|
|
13587
13606
|
ArrowRight: 1,
|
|
@@ -13593,7 +13612,22 @@ var SegmentedComponent = class SegmentedComponent {
|
|
|
13593
13612
|
event.preventDefault();
|
|
13594
13613
|
const next = (index + step + options.length) % options.length;
|
|
13595
13614
|
this.value.set(options[next].value);
|
|
13596
|
-
buttons
|
|
13615
|
+
this.buttons()[next]?.nativeElement.focus();
|
|
13616
|
+
}
|
|
13617
|
+
placeThumb(index) {
|
|
13618
|
+
const thumb = this.thumb().nativeElement;
|
|
13619
|
+
const button = this.buttons()[index]?.nativeElement;
|
|
13620
|
+
if (!button || button.offsetWidth === 0) {
|
|
13621
|
+
thumb.hidden = true;
|
|
13622
|
+
return;
|
|
13623
|
+
}
|
|
13624
|
+
thumb.style.width = `${button.offsetWidth}px`;
|
|
13625
|
+
thumb.style.transform = `translateX(${button.offsetLeft}px)`;
|
|
13626
|
+
if (thumb.hidden) {
|
|
13627
|
+
thumb.hidden = false;
|
|
13628
|
+
return;
|
|
13629
|
+
}
|
|
13630
|
+
thumb.classList.add("flr-seg__thumb--animated");
|
|
13597
13631
|
}
|
|
13598
13632
|
static {
|
|
13599
13633
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
@@ -13643,9 +13677,31 @@ var SegmentedComponent = class SegmentedComponent {
|
|
|
13643
13677
|
}
|
|
13644
13678
|
},
|
|
13645
13679
|
outputs: { value: "valueChange" },
|
|
13680
|
+
viewQueries: [
|
|
13681
|
+
{
|
|
13682
|
+
propertyName: "group",
|
|
13683
|
+
first: true,
|
|
13684
|
+
predicate: ["group"],
|
|
13685
|
+
descendants: true,
|
|
13686
|
+
isSignal: true
|
|
13687
|
+
},
|
|
13688
|
+
{
|
|
13689
|
+
propertyName: "thumb",
|
|
13690
|
+
first: true,
|
|
13691
|
+
predicate: ["thumb"],
|
|
13692
|
+
descendants: true,
|
|
13693
|
+
isSignal: true
|
|
13694
|
+
},
|
|
13695
|
+
{
|
|
13696
|
+
propertyName: "buttons",
|
|
13697
|
+
predicate: ["optionButton"],
|
|
13698
|
+
descendants: true,
|
|
13699
|
+
isSignal: true
|
|
13700
|
+
}
|
|
13701
|
+
],
|
|
13646
13702
|
ngImport: i0,
|
|
13647
|
-
template: "<div #group class=\"flr-seg\" role=\"radiogroup\" [attr.aria-label]=\"ariaLabel()\">\n @for (option of options(); track option.value; let i = $index) {\n @let selected = option.value === value();\n <button\n type=\"button\"\n role=\"radio\"\n class=\"flr-seg__option\"\n [class.flr-seg__option--selected]=\"selected\"\n [class.flr-seg__option--icon-only]=\"iconOnly() && option.icon\"\n [attr.aria-checked]=\"selected\"\n [attr.aria-label]=\"iconOnly() && option.icon ? option.label : null\"\n [attr.title]=\"iconOnly() && option.icon ? option.label : null\"\n [tabindex]=\"selected ? 0 : -1\"\n (click)=\"select(option)\"\n (keydown)=\"handleKeydown($event, i
|
|
13648
|
-
styles: [":host{display:inline-block}.flr-seg{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));border-radius:10px;background:var(--color-app-bg-2, #f4f4f2)}.flr-seg__option{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:var(--color-ink-3, #64748b);font:inherit;font-size:13px;cursor:pointer;transition:color .12s ease,background-color .12s ease}.flr-seg__option:hover{color:var(--color-ink, #1e293b)}.flr-seg__option:focus-visible{outline:2px solid var(--color-accent, currentColor);outline-offset
|
|
13703
|
+
template: "<div #group class=\"flr-seg\" role=\"radiogroup\" [attr.aria-label]=\"ariaLabel()\">\n <span #thumb class=\"flr-seg__thumb\" aria-hidden=\"true\" hidden></span>\n @for (option of options(); track option.value; let i = $index) {\n @let selected = option.value === value();\n <button\n #optionButton\n type=\"button\"\n role=\"radio\"\n class=\"flr-seg__option\"\n [class.flr-seg__option--selected]=\"selected\"\n [class.flr-seg__option--icon-only]=\"iconOnly() && option.icon\"\n [attr.aria-checked]=\"selected\"\n [attr.aria-label]=\"iconOnly() && option.icon ? option.label : null\"\n [attr.title]=\"iconOnly() && option.icon ? option.label : null\"\n [tabindex]=\"selected ? 0 : -1\"\n (click)=\"select(option)\"\n (keydown)=\"handleKeydown($event, i)\"\n >\n @let icon = trustedIcon(option.icon);\n @if (icon) {\n <span class=\"flr-seg__icon\" aria-hidden=\"true\" [innerHTML]=\"icon\"></span>\n }\n @if (!iconOnly() || !icon) {\n <span>{{ option.label }}</span>\n }\n </button>\n }\n</div>\n",
|
|
13704
|
+
styles: [":host{display:inline-block}.flr-seg{position:relative;display:inline-flex;overflow:hidden;gap:2px;padding:3px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));border-radius:10px;background:var(--color-app-bg-2, #f4f4f2)}.flr-seg__thumb{position:absolute;top:3px;bottom:3px;left:0;border-radius:7px;background:var(--color-card, #ffffff);box-shadow:0 1px 2px #1e293b1f;pointer-events:none}.flr-seg__thumb[hidden]{display:none}.flr-seg__thumb--animated{transition:transform .26s cubic-bezier(.3,0,0,1),width .26s cubic-bezier(.3,0,0,1)}@media(prefers-reduced-motion:reduce){.flr-seg__thumb--animated{transition:none}}.flr-seg__option{position:relative;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:var(--color-ink-3, #64748b);font:inherit;font-size:13px;cursor:pointer;transition:color .12s ease,background-color .12s ease}.flr-seg__option:hover{color:var(--color-ink, #1e293b)}.flr-seg__option:focus-visible{outline:2px solid var(--color-accent, currentColor);outline-offset:-2px}.flr-seg__option--selected{color:var(--color-ink, #1e293b)}.flr-seg__option--icon-only{width:30px;padding:0;justify-content:center}.flr-seg__icon{display:inline-flex}.flr-seg__icon ::ng-deep svg{width:16px;height:16px}\n"],
|
|
13649
13705
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
13650
13706
|
});
|
|
13651
13707
|
}
|
|
@@ -13660,10 +13716,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
13660
13716
|
args: [{
|
|
13661
13717
|
selector: "flr-segmented",
|
|
13662
13718
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13663
|
-
template: "<div #group class=\"flr-seg\" role=\"radiogroup\" [attr.aria-label]=\"ariaLabel()\">\n @for (option of options(); track option.value; let i = $index) {\n @let selected = option.value === value();\n <button\n type=\"button\"\n role=\"radio\"\n class=\"flr-seg__option\"\n [class.flr-seg__option--selected]=\"selected\"\n [class.flr-seg__option--icon-only]=\"iconOnly() && option.icon\"\n [attr.aria-checked]=\"selected\"\n [attr.aria-label]=\"iconOnly() && option.icon ? option.label : null\"\n [attr.title]=\"iconOnly() && option.icon ? option.label : null\"\n [tabindex]=\"selected ? 0 : -1\"\n (click)=\"select(option)\"\n (keydown)=\"handleKeydown($event, i
|
|
13664
|
-
styles: [":host{display:inline-block}.flr-seg{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));border-radius:10px;background:var(--color-app-bg-2, #f4f4f2)}.flr-seg__option{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:var(--color-ink-3, #64748b);font:inherit;font-size:13px;cursor:pointer;transition:color .12s ease,background-color .12s ease}.flr-seg__option:hover{color:var(--color-ink, #1e293b)}.flr-seg__option:focus-visible{outline:2px solid var(--color-accent, currentColor);outline-offset
|
|
13719
|
+
template: "<div #group class=\"flr-seg\" role=\"radiogroup\" [attr.aria-label]=\"ariaLabel()\">\n <span #thumb class=\"flr-seg__thumb\" aria-hidden=\"true\" hidden></span>\n @for (option of options(); track option.value; let i = $index) {\n @let selected = option.value === value();\n <button\n #optionButton\n type=\"button\"\n role=\"radio\"\n class=\"flr-seg__option\"\n [class.flr-seg__option--selected]=\"selected\"\n [class.flr-seg__option--icon-only]=\"iconOnly() && option.icon\"\n [attr.aria-checked]=\"selected\"\n [attr.aria-label]=\"iconOnly() && option.icon ? option.label : null\"\n [attr.title]=\"iconOnly() && option.icon ? option.label : null\"\n [tabindex]=\"selected ? 0 : -1\"\n (click)=\"select(option)\"\n (keydown)=\"handleKeydown($event, i)\"\n >\n @let icon = trustedIcon(option.icon);\n @if (icon) {\n <span class=\"flr-seg__icon\" aria-hidden=\"true\" [innerHTML]=\"icon\"></span>\n }\n @if (!iconOnly() || !icon) {\n <span>{{ option.label }}</span>\n }\n </button>\n }\n</div>\n",
|
|
13720
|
+
styles: [":host{display:inline-block}.flr-seg{position:relative;display:inline-flex;overflow:hidden;gap:2px;padding:3px;border:1px solid var(--color-rule, rgba(30, 41, 59, .14));border-radius:10px;background:var(--color-app-bg-2, #f4f4f2)}.flr-seg__thumb{position:absolute;top:3px;bottom:3px;left:0;border-radius:7px;background:var(--color-card, #ffffff);box-shadow:0 1px 2px #1e293b1f;pointer-events:none}.flr-seg__thumb[hidden]{display:none}.flr-seg__thumb--animated{transition:transform .26s cubic-bezier(.3,0,0,1),width .26s cubic-bezier(.3,0,0,1)}@media(prefers-reduced-motion:reduce){.flr-seg__thumb--animated{transition:none}}.flr-seg__option{position:relative;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 12px;border:0;border-radius:7px;background:transparent;color:var(--color-ink-3, #64748b);font:inherit;font-size:13px;cursor:pointer;transition:color .12s ease,background-color .12s ease}.flr-seg__option:hover{color:var(--color-ink, #1e293b)}.flr-seg__option:focus-visible{outline:2px solid var(--color-accent, currentColor);outline-offset:-2px}.flr-seg__option--selected{color:var(--color-ink, #1e293b)}.flr-seg__option--icon-only{width:30px;padding:0;justify-content:center}.flr-seg__icon{display:inline-flex}.flr-seg__icon ::ng-deep svg{width:16px;height:16px}\n"]
|
|
13665
13721
|
}]
|
|
13666
13722
|
}],
|
|
13723
|
+
ctorParameters: () => [],
|
|
13667
13724
|
propDecorators: {
|
|
13668
13725
|
options: [{
|
|
13669
13726
|
type: i0.Input,
|
|
@@ -13699,6 +13756,18 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
13699
13756
|
alias: "aria-label",
|
|
13700
13757
|
required: false
|
|
13701
13758
|
}]
|
|
13759
|
+
}],
|
|
13760
|
+
group: [{
|
|
13761
|
+
type: i0.ViewChild,
|
|
13762
|
+
args: ["group", { isSignal: true }]
|
|
13763
|
+
}],
|
|
13764
|
+
thumb: [{
|
|
13765
|
+
type: i0.ViewChild,
|
|
13766
|
+
args: ["thumb", { isSignal: true }]
|
|
13767
|
+
}],
|
|
13768
|
+
buttons: [{
|
|
13769
|
+
type: i0.ViewChildren,
|
|
13770
|
+
args: ["optionButton", { isSignal: true }]
|
|
13702
13771
|
}]
|
|
13703
13772
|
}
|
|
13704
13773
|
});
|