@sixbell-telco/sdk 4.6.1 → 4.8.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.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,49 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [4.8.0] - 2026-11-18
11
+
12
+ ### Changed
13
+
14
+ - **Modern layout**: `bg-modern-gradient` fades long and soft (OKLCH) from a band anchored to the page-banner text: `st-page-banner` sets `--st-modern-band-extent` on the layout frame (title and subtitle bottom + 1.5rem, at least 11rem). Section titles, counts and ghost actions placed on the page background now keep 4.5:1 in every theme and scheme (they fell to 2.6:1 under the band); dark schemes use a lighter tint (`light-dark()`). Keep `base-content-muted` off the page background in Modern ([layouts README](https://github.com/EnghouseGlobal/nw-sx-web-libs-ui-kit/blob/develop/projects/sdk/layouts/README.md))
15
+
16
+ ### Consumer upgrade
17
+
18
+ - Move a host and every remote it loads to 4.8.0 together: the SDK is a strict federation singleton. No `ng update` migration runs for 4.8.0
19
+ - Modern pages need no code change: `st-page-banner` anchors the band itself. Text placed on the page background outside a card should use `text-base-content`, `text-base-content-secondary` or `text-primary`; `text-base-content-muted` there stays below 4.5:1 near the band
20
+
21
+ ## [4.7.0] - 2026-11-13
22
+
23
+ ### Added
24
+
25
+ - **Translation**: `TranslationService.addTranslationPaths(paths)` adds a remote's i18n folder at runtime and keeps it through every later refresh; hosts no longer need to patch `setRuntimeConfig`. Calling it again retries the languages whose files failed
26
+ - **Runtime config**: `RuntimeHttpClient` takes `noRetryStatuses`, and a non-2xx response throws `RuntimeHttpError` with its `status`
27
+
28
+ ### Fixed
29
+
30
+ - **Translation**: a language loaded before a remote registered (the fallback, or one used earlier) no longer shows the remote's keys raw after a language switch. A refresh updates every loaded language, and a load started with older paths fetches again
31
+ - **Translation**: `refreshInactiveLanguages()` refreshes only the languages already loaded; a language never loaded loads on first use
32
+ - **Translation**: the fallback language loads before the first config resolves; a translation file that could not be read is retried once, then fetched again on the next use of its language (or of a language it is the fallback for); a missing file (404) is not retried
33
+ - **Translation**: a refresh that reads a language in full replaces it, so a key removed from a file goes away without a reload; a refresh with a failed file keeps the loaded keys
34
+ - **Translation**: `getAvailableLanguages()` returns the configured languages, not only the ones loaded so far; a first load whose loader rejects no longer leaves later configs treated as still applying
35
+ - **Translation**: `TranslatedTitleStrategy` translates the tab title again when the language changes, unless the page set its own title
36
+ - **MFE shell**: the child's stylesheet is no longer preloaded in the document head. The shell's own link loads it when the child mounts; the preload went unused, with a browser warning, whenever the user left before the child mounted
37
+
38
+ ### Deprecated
39
+
40
+ - **Translation**: `enablePrefetch()` has no effect. The prefetch downloaded every language without keeping it; languages load on first use instead
41
+
42
+ ### Consumer upgrade
43
+
44
+ - Move a host and every remote it loads to 4.7.0 together: the SDK is a strict federation singleton. No `ng update` migration runs for 4.7.0
45
+ - Hosts that add a remote's i18n folder by patching `setRuntimeConfig` (the `RemoteTranslationsService` of mfe-host-template before 4.7.0) can call `TranslationService.addTranslationPaths([path])` instead, as the template does now. The patch keeps working, but `addTranslationPaths` keeps the folder through every refresh and retries a failed file
46
+ - `enablePrefetch()` has no effect: remove the call when convenient
47
+ - `getAvailableLanguages()` now returns the configured languages, not only the ones loaded so far
48
+
49
+ ### Repository / tooling
50
+
51
+ - **Agent settings**: `.claude/settings.json` sets `skillListingBudgetFraction: 0.02`, so Claude Code lists every installed skill with its description; the rest of `.claude/` stays ignored
52
+
10
53
  ## [4.6.1] - 2026-11-13
11
54
 
12
55
  ### Fixed
@@ -887,6 +887,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
887
887
  }, template: "@let collapsed = railCollapsed();\n\n<div [class]=\"frameClass()\" [attr.data-st-app-layout]=\"layout()\">\n\t@switch (layout()) {\n\t\t@case ('modern') {\n\t\t\t<header class=\"[grid-area:header]\">\n\t\t\t\t<st-navbar\n\t\t\t\t\t[homeLink]=\"homeLink()\"\n\t\t\t\t\t[logoAlt]=\"logoAlt()\"\n\t\t\t\t\t[showLanguageSelector]=\"showLanguageSelector()\"\n\t\t\t\t\t[showSchemeSelector]=\"showSchemeSelector()\"\n\t\t\t\t\t[showThemeSelector]=\"showThemeSelector()\"\n\t\t\t\t\t[showLayoutSelector]=\"showLayoutSelector()\"\n\t\t\t\t\t(openLayoutSwitcher)=\"openSwitcher()\"\n\t\t\t\t>\n\t\t\t\t\t<!-- ng-content cannot be re-projected from inside @switch, so the end slot is a template rendered here -->\n\t\t\t\t\t<ng-container ngProjectAs=\"[stNavbarEnd]\" [ngTemplateOutlet]=\"navbarEndTemplate()\" />\n\t\t\t\t</st-navbar>\n\t\t\t</header>\n\n\t\t\t<aside [class]=\"asideClass()\" (mouseenter)=\"setHovering(true)\" (mouseleave)=\"setHovering(false)\">\n\t\t\t\t<st-side-menu\n\t\t\t\t\t[items]=\"items()\"\n\t\t\t\t\t[topLevelGroups]=\"topLevelGroups()\"\n\t\t\t\t\t[activeMatch]=\"activeMatch()\"\n\t\t\t\t\t[searchable]=\"searchable()\"\n\t\t\t\t\t[collapsed]=\"collapsed\"\n\t\t\t\t/>\n\t\t\t</aside>\n\t\t}\n\t\t@default {\n\t\t\t@let headerToggle = collapseToggle() === 'header';\n\t\t\t<aside [id]=\"sidebarId\" [class]=\"asideClass()\" (mouseenter)=\"setHovering(true)\" (mouseleave)=\"setHovering(false)\">\n\t\t\t\t<div class=\"flex gap-2\" [class]=\"collapsed ? 'flex-col items-center' : 'items-center justify-between'\" data-st-app-layout-brand>\n\t\t\t\t\t<a\n\t\t\t\t\t\tclass=\"btn btn-ghost h-10 min-h-10 min-w-0 justify-start overflow-hidden\"\n\t\t\t\t\t\t[class.p-0]=\"collapsed\"\n\t\t\t\t\t\t[class.w-10]=\"collapsed\"\n\t\t\t\t\t\t[class.flex-1]=\"!collapsed\"\n\t\t\t\t\t\t[class.px-3]=\"!collapsed\"\n\t\t\t\t\t\t[routerLink]=\"homeLink()\"\n\t\t\t\t\t\tdata-st-app-layout-home\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (classicLogoUrl(); as logo) {\n\t\t\t\t\t\t\t<img\n\t\t\t\t\t\t\t\t[src]=\"logo\"\n\t\t\t\t\t\t\t\t[alt]=\"logoLabel()\"\n\t\t\t\t\t\t\t\tclass=\"h-10 object-contain object-left\"\n\t\t\t\t\t\t\t\t[class.w-10]=\"collapsed\"\n\t\t\t\t\t\t\t\t[class.w-auto]=\"!collapsed\"\n\t\t\t\t\t\t\t\t[class.max-w-full]=\"!collapsed\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t} @else {\n\t\t\t\t\t\t\t<span class=\"truncate font-semibold\" [class.sr-only]=\"collapsed\">{{ logoLabel() }}</span>\n\t\t\t\t\t\t}\n\t\t\t\t\t</a>\n\n\t\t\t\t\t@if (headerToggle) {\n\t\t\t\t\t\t@let classicToggleLabel = (pinnedCollapsed() ? 'sdk.layout.expand' : 'sdk.layout.collapse') | translate;\n\t\t\t\t\t\t<st-tooltip variant=\"secondary\" [label]=\"classicToggleLabel\" [position]=\"collapsed ? 'right' : 'bottom'\">\n\t\t\t\t\t\t\t<st-button\n\t\t\t\t\t\t\t\tvariant=\"base\"\n\t\t\t\t\t\t\t\tsize=\"sm\"\n\t\t\t\t\t\t\t\t[square]=\"true\"\n\t\t\t\t\t\t\t\t[ghost]=\"true\"\n\t\t\t\t\t\t\t\tdata-st-app-layout-collapse\n\t\t\t\t\t\t\t\t[icon]=\"pinnedCollapsed() ? collapseClosedIcon : collapseOpenIcon\"\n\t\t\t\t\t\t\t\t[ariaExpanded]=\"!pinnedCollapsed()\"\n\t\t\t\t\t\t\t\t[ariaControls]=\"sidebarId\"\n\t\t\t\t\t\t\t\t(triggered)=\"toggleClassicCollapsed()\"\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<span class=\"sr-only\">{{ classicToggleLabel }}</span>\n\t\t\t\t\t\t\t</st-button>\n\t\t\t\t\t\t</st-tooltip>\n\t\t\t\t\t}\n\t\t\t\t</div>\n\n\t\t\t\t<st-side-menu\n\t\t\t\t\t[items]=\"items()\"\n\t\t\t\t\t[topLevelGroups]=\"topLevelGroups()\"\n\t\t\t\t\t[activeMatch]=\"activeMatch()\"\n\t\t\t\t\t[searchable]=\"searchable()\"\n\t\t\t\t\t[collapsed]=\"collapsed\"\n\t\t\t\t\t[showCollapseToggle]=\"!headerToggle\"\n\t\t\t\t/>\n\n\t\t\t\t<div class=\"bg-base-300 h-px shrink-0\" aria-hidden=\"true\"></div>\n\n\t\t\t\t<st-user-menu\n\t\t\t\t\tvariant=\"sidebar\"\n\t\t\t\t\t[collapsed]=\"collapsed\"\n\t\t\t\t\t[showLanguageSelector]=\"showLanguageSelector()\"\n\t\t\t\t\t[showSchemeSelector]=\"showSchemeSelector()\"\n\t\t\t\t\t[showThemeSelector]=\"showThemeSelector()\"\n\t\t\t\t\t[showLayoutSelector]=\"showLayoutSelector()\"\n\t\t\t\t\t(openChange)=\"setUserMenuOpen($event)\"\n\t\t\t\t\t(openLayoutSwitcher)=\"openSwitcher()\"\n\t\t\t\t/>\n\t\t\t</aside>\n\t\t}\n\t}\n\n\t<main [class]=\"mainClass()\">\n\t\t<ng-content />\n\t</main>\n</div>\n\n<st-layout-switcher [(opened)]=\"switcherOpen\" />\n" }]
888
888
  }] });
889
889
 
890
+ /**
891
+ * Modern layout: the brand band of `bg-modern-gradient` holds at least this far (rem) and always this gap (rem)
892
+ * below the banner title and subtitle, so a wrapped title keeps the ink behind it and the fade moves down with the
893
+ * content. scripts/banner-text-contrast.contract.test.mjs reads both values.
894
+ */
895
+ const MODERN_BAND_MIN_REM = 11;
896
+ const MODERN_BAND_GAP_REM = 1.5;
890
897
  /** @internal Dev-mode switch for the banner's console warnings; specs replace `enabled` to check prod mode. */
891
898
  const pageBannerDevMode = { enabled: () => isDevMode() };
892
899
  /**
@@ -902,6 +909,9 @@ class PageBannerComponent {
902
909
  themeAssetsService = inject(ThemeAssetsService);
903
910
  themeService = inject(ThemeService);
904
911
  router = inject(Router);
912
+ host = inject(ElementRef);
913
+ /** The modern banner text block; its bottom anchors the brand band of the layout frame. */
914
+ bandText = viewChild('bandText');
905
915
  title = input('');
906
916
  subtitle = input('');
907
917
  /** URL the back button navigates to; no button when empty. */
@@ -974,6 +984,26 @@ class PageBannerComponent {
974
984
  });
975
985
  warnedScrimWithoutTone = false;
976
986
  constructor() {
987
+ // Modern: anchor the brand band to the bottom of the title and subtitle, on the layout frame that paints it.
988
+ afterRenderEffect((onCleanup) => {
989
+ const text = this.bandText()?.nativeElement;
990
+ const frame = this.host.nativeElement.closest('.bg-modern-gradient');
991
+ if (!text || !frame || typeof ResizeObserver === 'undefined')
992
+ return;
993
+ const update = () => {
994
+ const rootPx = Number.parseFloat(getComputedStyle(document.documentElement).fontSize) || 16;
995
+ const bottomRem = (text.getBoundingClientRect().bottom - frame.getBoundingClientRect().top) / rootPx;
996
+ frame.style.setProperty('--st-modern-band-extent', `${Math.max(MODERN_BAND_MIN_REM, bottomRem + MODERN_BAND_GAP_REM)}rem`);
997
+ };
998
+ update();
999
+ const observer = new ResizeObserver(update);
1000
+ observer.observe(text);
1001
+ observer.observe(frame);
1002
+ onCleanup(() => {
1003
+ observer.disconnect();
1004
+ frame.style.removeProperty('--st-modern-band-extent');
1005
+ });
1006
+ });
977
1007
  // Opting into the scrim over art of unknown tone falls back to the caption; say so once per banner in dev mode.
978
1008
  effect(() => {
979
1009
  if (this.warnedScrimWithoutTone || this.requestedSurface() !== 'scrim' || !this.isClassic() || !this.bannerUrl() || this.imageTone())
@@ -1001,13 +1031,13 @@ class PageBannerComponent {
1001
1031
  return Object.fromEntries(keep.filter((name) => Object.hasOwn(current, name)).map((name) => [name, current[name]]));
1002
1032
  }
1003
1033
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PageBannerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1004
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: PageBannerComponent, isStandalone: true, selector: "st-page-banner", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, backLink: { classPropertyName: "backLink", publicName: "backLink", isSignal: true, isRequired: false, transformFunction: null }, backQueryParams: { classPropertyName: "backQueryParams", publicName: "backQueryParams", isSignal: true, isRequired: false, transformFunction: null }, bannerAsset: { classPropertyName: "bannerAsset", publicName: "bannerAsset", isSignal: true, isRequired: false, transformFunction: null }, bannerTone: { classPropertyName: "bannerTone", publicName: "bannerTone", isSignal: true, isRequired: false, transformFunction: null }, bannerTextSurface: { classPropertyName: "bannerTextSurface", publicName: "bannerTextSurface", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClass()" } }, ngImport: i0, template: "@if (isClassic()) {\n\t@if (bannerUrl(); as url) {\n\t\t<div\n\t\t\tdata-st-banner=\"image\"\n\t\t\t[style.background-image]=\"'url(' + url + ')'\"\n\t\t\tclass=\"rounded-box bg-neutral relative mb-6 flex h-30 items-end justify-between bg-cover bg-center px-6 py-5\"\n\t\t>\n\t\t\t@if (scrimTone(); as tone) {\n\t\t\t\t<!-- Tone-matched veil (theme token --color-banner-scrim-<tone>), solid behind the text column and fading out to the right -->\n\t\t\t\t<div [attr.data-st-banner-scrim]=\"tone\" aria-hidden=\"true\" class=\"rounded-box pointer-events-none absolute inset-0 z-0\"></div>\n\t\t\t} @else {\n\t\t\t\t<!-- Caption fade from the bottom-left corner, matched to the image tone (theme token --color-banner-caption-<tone>) -->\n\t\t\t\t<div [attr.data-st-banner-caption]=\"captionTone()\" aria-hidden=\"true\" class=\"rounded-box pointer-events-none absolute inset-0 z-0\"></div>\n\t\t\t}\n\n\t\t\t@if (backLink()) {\n\t\t\t\t<!-- Over art the button sits on a frosted base-100 surface with base-content text, so the label keeps 4.5:1 over any pixel in either scheme -->\n\t\t\t\t<div data-st-banner-back [class]=\"backClass()\">\n\t\t\t\t\t<st-button variant=\"base\" size=\"sm\" [ghost]=\"true\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<!-- The [data-st-banner-text] scope makes base-content white over dark art and near-black (caption) or black (scrim) over light art -->\n\t\t\t<div [class]=\"textClass\" [attr.data-st-banner-text]=\"textScope()\">\n\t\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t\t@if (subtitle()) {\n\t\t\t\t\t<p class=\"text-base-content-secondary\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t} @else {\n\t\t<div data-st-banner=\"plain\" class=\"rounded-box bg-base-200 relative mb-6 flex h-30 items-end justify-between px-6 py-5\">\n\t\t\t@if (backLink()) {\n\t\t\t\t<div data-st-banner-back class=\"absolute top-5 right-6 flex gap-3\" [class]=\"backFocusClass\">\n\t\t\t\t\t<st-button variant=\"tertiary\" size=\"sm\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<div class=\"text-base-content flex min-w-0 flex-col wrap-break-word\">\n\t\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t\t@if (subtitle()) {\n\t\t\t\t\t<p class=\"text-base-content-secondary\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t}\n} @else if (title()) {\n\t<!-- Modern: on the brand gradient, primary-gradient-content stays light in both schemes. The band-text scope re-points base-content and base-content-secondary to it. -->\n\t<div data-st-banner=\"modern\" class=\"mb-4 flex items-end justify-between\">\n\t\t<div data-st-banner-band-text class=\"text-base-content flex min-w-0 flex-col wrap-break-word\">\n\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t@if (subtitle()) {\n\t\t\t\t<p class=\"text-base-content-secondary\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t}\n\t\t</div>\n\n\t\t@if (backLink()) {\n\t\t\t<div data-st-banner-back [class]=\"frostedBackClass\">\n\t\t\t\t<st-button variant=\"base\" size=\"sm\" [ghost]=\"true\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t</st-button>\n\t\t\t</div>\n\t\t}\n\t</div>\n}\n\n<!-- Stretch the routed page (a sibling of router-outlet) so feature cards can fill the shell -->\n<div\n\tclass=\"flex min-h-0 flex-1 flex-col [&>*:not(router-outlet)]:flex [&>*:not(router-outlet)]:min-h-full [&>*:not(router-outlet)]:flex-1 [&>*:not(router-outlet)]:flex-col\"\n>\n\t<ng-content />\n</div>\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDescribedBy", "ariaControls"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1034
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: PageBannerComponent, isStandalone: true, selector: "st-page-banner", inputs: { title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, subtitle: { classPropertyName: "subtitle", publicName: "subtitle", isSignal: true, isRequired: false, transformFunction: null }, backLink: { classPropertyName: "backLink", publicName: "backLink", isSignal: true, isRequired: false, transformFunction: null }, backQueryParams: { classPropertyName: "backQueryParams", publicName: "backQueryParams", isSignal: true, isRequired: false, transformFunction: null }, bannerAsset: { classPropertyName: "bannerAsset", publicName: "bannerAsset", isSignal: true, isRequired: false, transformFunction: null }, bannerTone: { classPropertyName: "bannerTone", publicName: "bannerTone", isSignal: true, isRequired: false, transformFunction: null }, bannerTextSurface: { classPropertyName: "bannerTextSurface", publicName: "bannerTextSurface", isSignal: true, isRequired: false, transformFunction: null }, class: { classPropertyName: "class", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "hostClass()" } }, viewQueries: [{ propertyName: "bandText", first: true, predicate: ["bandText"], descendants: true, isSignal: true }], ngImport: i0, template: "@if (isClassic()) {\n\t@if (bannerUrl(); as url) {\n\t\t<div\n\t\t\tdata-st-banner=\"image\"\n\t\t\t[style.background-image]=\"'url(' + url + ')'\"\n\t\t\tclass=\"rounded-box bg-neutral relative mb-6 flex h-30 items-end justify-between bg-cover bg-center px-6 py-5\"\n\t\t>\n\t\t\t@if (scrimTone(); as tone) {\n\t\t\t\t<!-- Tone-matched veil (theme token --color-banner-scrim-<tone>), solid behind the text column and fading out to the right -->\n\t\t\t\t<div [attr.data-st-banner-scrim]=\"tone\" aria-hidden=\"true\" class=\"rounded-box pointer-events-none absolute inset-0 z-0\"></div>\n\t\t\t} @else {\n\t\t\t\t<!-- Caption fade from the bottom-left corner, matched to the image tone (theme token --color-banner-caption-<tone>) -->\n\t\t\t\t<div [attr.data-st-banner-caption]=\"captionTone()\" aria-hidden=\"true\" class=\"rounded-box pointer-events-none absolute inset-0 z-0\"></div>\n\t\t\t}\n\n\t\t\t@if (backLink()) {\n\t\t\t\t<!-- Over art the button sits on a frosted base-100 surface with base-content text, so the label keeps 4.5:1 over any pixel in either scheme -->\n\t\t\t\t<div data-st-banner-back [class]=\"backClass()\">\n\t\t\t\t\t<st-button variant=\"base\" size=\"sm\" [ghost]=\"true\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<!-- The [data-st-banner-text] scope makes base-content white over dark art and near-black (caption) or black (scrim) over light art -->\n\t\t\t<div [class]=\"textClass\" [attr.data-st-banner-text]=\"textScope()\">\n\t\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t\t@if (subtitle()) {\n\t\t\t\t\t<p class=\"text-base-content-secondary\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t} @else {\n\t\t<div data-st-banner=\"plain\" class=\"rounded-box bg-base-200 relative mb-6 flex h-30 items-end justify-between px-6 py-5\">\n\t\t\t@if (backLink()) {\n\t\t\t\t<div data-st-banner-back class=\"absolute top-5 right-6 flex gap-3\" [class]=\"backFocusClass\">\n\t\t\t\t\t<st-button variant=\"tertiary\" size=\"sm\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<div class=\"text-base-content flex min-w-0 flex-col wrap-break-word\">\n\t\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t\t@if (subtitle()) {\n\t\t\t\t\t<p class=\"text-base-content-secondary\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t}\n} @else if (title()) {\n\t<!-- Modern: on the brand gradient, primary-gradient-content stays light in both schemes. The band-text scope re-points base-content and base-content-secondary to it. -->\n\t<div data-st-banner=\"modern\" class=\"mb-4 flex items-end justify-between\">\n\t\t<div #bandText data-st-banner-band-text class=\"text-base-content flex min-w-0 flex-col wrap-break-word\">\n\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t@if (subtitle()) {\n\t\t\t\t<p class=\"text-base-content-secondary\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t}\n\t\t</div>\n\n\t\t@if (backLink()) {\n\t\t\t<div data-st-banner-back [class]=\"frostedBackClass\">\n\t\t\t\t<st-button variant=\"base\" size=\"sm\" [ghost]=\"true\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t</st-button>\n\t\t\t</div>\n\t\t}\n\t</div>\n}\n\n<!-- Stretch the routed page (a sibling of router-outlet) so feature cards can fill the shell -->\n<div\n\tclass=\"flex min-h-0 flex-1 flex-col [&>*:not(router-outlet)]:flex [&>*:not(router-outlet)]:min-h-full [&>*:not(router-outlet)]:flex-1 [&>*:not(router-outlet)]:flex-col\"\n>\n\t<ng-content />\n</div>\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation", "ariaLabel", "ariaExpanded", "ariaPressed", "ariaDescribedBy", "ariaControls"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1005
1035
  }
1006
1036
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PageBannerComponent, decorators: [{
1007
1037
  type: Component,
1008
1038
  args: [{ selector: 'st-page-banner', changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonComponent, TextDirective, TranslatePipe], host: {
1009
1039
  '[class]': 'hostClass()',
1010
- }, template: "@if (isClassic()) {\n\t@if (bannerUrl(); as url) {\n\t\t<div\n\t\t\tdata-st-banner=\"image\"\n\t\t\t[style.background-image]=\"'url(' + url + ')'\"\n\t\t\tclass=\"rounded-box bg-neutral relative mb-6 flex h-30 items-end justify-between bg-cover bg-center px-6 py-5\"\n\t\t>\n\t\t\t@if (scrimTone(); as tone) {\n\t\t\t\t<!-- Tone-matched veil (theme token --color-banner-scrim-<tone>), solid behind the text column and fading out to the right -->\n\t\t\t\t<div [attr.data-st-banner-scrim]=\"tone\" aria-hidden=\"true\" class=\"rounded-box pointer-events-none absolute inset-0 z-0\"></div>\n\t\t\t} @else {\n\t\t\t\t<!-- Caption fade from the bottom-left corner, matched to the image tone (theme token --color-banner-caption-<tone>) -->\n\t\t\t\t<div [attr.data-st-banner-caption]=\"captionTone()\" aria-hidden=\"true\" class=\"rounded-box pointer-events-none absolute inset-0 z-0\"></div>\n\t\t\t}\n\n\t\t\t@if (backLink()) {\n\t\t\t\t<!-- Over art the button sits on a frosted base-100 surface with base-content text, so the label keeps 4.5:1 over any pixel in either scheme -->\n\t\t\t\t<div data-st-banner-back [class]=\"backClass()\">\n\t\t\t\t\t<st-button variant=\"base\" size=\"sm\" [ghost]=\"true\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<!-- The [data-st-banner-text] scope makes base-content white over dark art and near-black (caption) or black (scrim) over light art -->\n\t\t\t<div [class]=\"textClass\" [attr.data-st-banner-text]=\"textScope()\">\n\t\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t\t@if (subtitle()) {\n\t\t\t\t\t<p class=\"text-base-content-secondary\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t} @else {\n\t\t<div data-st-banner=\"plain\" class=\"rounded-box bg-base-200 relative mb-6 flex h-30 items-end justify-between px-6 py-5\">\n\t\t\t@if (backLink()) {\n\t\t\t\t<div data-st-banner-back class=\"absolute top-5 right-6 flex gap-3\" [class]=\"backFocusClass\">\n\t\t\t\t\t<st-button variant=\"tertiary\" size=\"sm\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<div class=\"text-base-content flex min-w-0 flex-col wrap-break-word\">\n\t\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t\t@if (subtitle()) {\n\t\t\t\t\t<p class=\"text-base-content-secondary\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t}\n} @else if (title()) {\n\t<!-- Modern: on the brand gradient, primary-gradient-content stays light in both schemes. The band-text scope re-points base-content and base-content-secondary to it. -->\n\t<div data-st-banner=\"modern\" class=\"mb-4 flex items-end justify-between\">\n\t\t<div data-st-banner-band-text class=\"text-base-content flex min-w-0 flex-col wrap-break-word\">\n\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t@if (subtitle()) {\n\t\t\t\t<p class=\"text-base-content-secondary\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t}\n\t\t</div>\n\n\t\t@if (backLink()) {\n\t\t\t<div data-st-banner-back [class]=\"frostedBackClass\">\n\t\t\t\t<st-button variant=\"base\" size=\"sm\" [ghost]=\"true\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t</st-button>\n\t\t\t</div>\n\t\t}\n\t</div>\n}\n\n<!-- Stretch the routed page (a sibling of router-outlet) so feature cards can fill the shell -->\n<div\n\tclass=\"flex min-h-0 flex-1 flex-col [&>*:not(router-outlet)]:flex [&>*:not(router-outlet)]:min-h-full [&>*:not(router-outlet)]:flex-1 [&>*:not(router-outlet)]:flex-col\"\n>\n\t<ng-content />\n</div>\n" }]
1040
+ }, template: "@if (isClassic()) {\n\t@if (bannerUrl(); as url) {\n\t\t<div\n\t\t\tdata-st-banner=\"image\"\n\t\t\t[style.background-image]=\"'url(' + url + ')'\"\n\t\t\tclass=\"rounded-box bg-neutral relative mb-6 flex h-30 items-end justify-between bg-cover bg-center px-6 py-5\"\n\t\t>\n\t\t\t@if (scrimTone(); as tone) {\n\t\t\t\t<!-- Tone-matched veil (theme token --color-banner-scrim-<tone>), solid behind the text column and fading out to the right -->\n\t\t\t\t<div [attr.data-st-banner-scrim]=\"tone\" aria-hidden=\"true\" class=\"rounded-box pointer-events-none absolute inset-0 z-0\"></div>\n\t\t\t} @else {\n\t\t\t\t<!-- Caption fade from the bottom-left corner, matched to the image tone (theme token --color-banner-caption-<tone>) -->\n\t\t\t\t<div [attr.data-st-banner-caption]=\"captionTone()\" aria-hidden=\"true\" class=\"rounded-box pointer-events-none absolute inset-0 z-0\"></div>\n\t\t\t}\n\n\t\t\t@if (backLink()) {\n\t\t\t\t<!-- Over art the button sits on a frosted base-100 surface with base-content text, so the label keeps 4.5:1 over any pixel in either scheme -->\n\t\t\t\t<div data-st-banner-back [class]=\"backClass()\">\n\t\t\t\t\t<st-button variant=\"base\" size=\"sm\" [ghost]=\"true\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<!-- The [data-st-banner-text] scope makes base-content white over dark art and near-black (caption) or black (scrim) over light art -->\n\t\t\t<div [class]=\"textClass\" [attr.data-st-banner-text]=\"textScope()\">\n\t\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t\t@if (subtitle()) {\n\t\t\t\t\t<p class=\"text-base-content-secondary\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t} @else {\n\t\t<div data-st-banner=\"plain\" class=\"rounded-box bg-base-200 relative mb-6 flex h-30 items-end justify-between px-6 py-5\">\n\t\t\t@if (backLink()) {\n\t\t\t\t<div data-st-banner-back class=\"absolute top-5 right-6 flex gap-3\" [class]=\"backFocusClass\">\n\t\t\t\t\t<st-button variant=\"tertiary\" size=\"sm\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t\t</st-button>\n\t\t\t\t</div>\n\t\t\t}\n\n\t\t\t<div class=\"text-base-content flex min-w-0 flex-col wrap-break-word\">\n\t\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t\t@if (subtitle()) {\n\t\t\t\t\t<p class=\"text-base-content-secondary\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t\t}\n\t\t\t</div>\n\t\t</div>\n\t}\n} @else if (title()) {\n\t<!-- Modern: on the brand gradient, primary-gradient-content stays light in both schemes. The band-text scope re-points base-content and base-content-secondary to it. -->\n\t<div data-st-banner=\"modern\" class=\"mb-4 flex items-end justify-between\">\n\t\t<div #bandText data-st-banner-band-text class=\"text-base-content flex min-w-0 flex-col wrap-break-word\">\n\t\t\t<h1 stText=\"1\" stTextWeight=\"medium\">{{ title() }}</h1>\n\t\t\t@if (subtitle()) {\n\t\t\t\t<p class=\"text-base-content-secondary\" stText=\"7\" stTextWeight=\"medium\" stTextLineClamp=\"2\">{{ subtitle() }}</p>\n\t\t\t}\n\t\t</div>\n\n\t\t@if (backLink()) {\n\t\t\t<div data-st-banner-back [class]=\"frostedBackClass\">\n\t\t\t\t<st-button variant=\"base\" size=\"sm\" [ghost]=\"true\" [icon]=\"backIcon\" (clicked)=\"goBack()\">\n\t\t\t\t\t{{ 'sdk.layout.back' | translate }}\n\t\t\t\t</st-button>\n\t\t\t</div>\n\t\t}\n\t</div>\n}\n\n<!-- Stretch the routed page (a sibling of router-outlet) so feature cards can fill the shell -->\n<div\n\tclass=\"flex min-h-0 flex-1 flex-col [&>*:not(router-outlet)]:flex [&>*:not(router-outlet)]:min-h-full [&>*:not(router-outlet)]:flex-1 [&>*:not(router-outlet)]:flex-col\"\n>\n\t<ng-content />\n</div>\n" }]
1011
1041
  }], ctorParameters: () => [] });
1012
1042
 
1013
1043
  /**