@sixbell-telco/sdk 4.1.0 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -1
- package/fesm2022/sixbell-telco-sdk-layouts.mjs +7 -5
- package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +4 -0
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/layouts/src/page-banner/page-banner.component.d.ts +4 -2
- package/package.json +19 -19
- package/utils/theme/src/theme-dom/theme-dom.service.d.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [4.1.2] - 2026-10-13
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **Theme**: switching the color scheme (for example Light → Dark from the user menu) now also updates overlays that are already open, such as the sidebar user menu, dropdowns, selects, comboboxes, tooltips and dialogs. Before, the page switched but an open overlay kept the previous scheme until it was closed and reopened.
|
|
15
|
+
|
|
16
|
+
## [4.1.1] - 2026-10-12
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **Layouts**: `st-page-banner` no longer veils the whole banner image with a `base-100/80` scrim when the theme declares no `tone` for the asset. A caption gradient now darkens only the corner behind the title, which turns white; the rest of the art stays untouched in both schemes. Titles over toned art get a soft opposite-color text halo, and the back button keeps its frosted surface over any art.
|
|
21
|
+
|
|
10
22
|
## [4.1.0] - 2026-10-12
|
|
11
23
|
|
|
12
24
|
### Added
|
|
@@ -933,7 +945,9 @@ Each MFE (SBP host, aux-tables, audit, Herald, guas, ddt, bulkload) does the fol
|
|
|
933
945
|
- **ngx-pagination**: Removed dependency after migrating to internal PaginationPipe
|
|
934
946
|
- **Unused Exports**: Removed unused components and exports from public API
|
|
935
947
|
|
|
936
|
-
[Unreleased]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.1.
|
|
948
|
+
[Unreleased]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.1.2...HEAD
|
|
949
|
+
[4.1.2]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.1.1...4.1.2
|
|
950
|
+
[4.1.1]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.1.0...4.1.1
|
|
937
951
|
[4.1.0]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/4.0.0...4.1.0
|
|
938
952
|
[4.0.0]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/3.3.1...4.0.0
|
|
939
953
|
[3.3.1]: https://github.com/EnghouseGlobal/NW-SX-web-libs-ui-kit/compare/3.3.0...3.3.1
|
|
@@ -881,7 +881,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
881
881
|
* Page header for the SDK layouts. Classic shows the title over a theme banner image (or a plain
|
|
882
882
|
* surface when the theme has no such asset); modern shows it as light text on the brand gradient.
|
|
883
883
|
* Over an image, the title color follows the image tone the theme declares in its catalog
|
|
884
|
-
* (`tone`),
|
|
884
|
+
* (`tone`); when no tone is known, a caption gradient darkens only the corner behind white text.
|
|
885
885
|
* Projected content (usually a `router-outlet`) fills the remaining height.
|
|
886
886
|
*/
|
|
887
887
|
class PageBannerComponent {
|
|
@@ -904,8 +904,10 @@ class PageBannerComponent {
|
|
|
904
904
|
* contrasts with whatever is behind it (art, scrim, surface or the modern gradient), in both schemes.
|
|
905
905
|
*/
|
|
906
906
|
backFocusClass = '[&_.btn:focus-visible]:outline-base-content [&_.btn:focus-visible]:ring-4 [&_.btn:focus-visible]:ring-base-100';
|
|
907
|
-
/** Frosted surface for the back button over
|
|
908
|
-
backClass = computed(() => cn('absolute top-5 right-6 z-1 flex gap-3', this.backFocusClass,
|
|
907
|
+
/** Frosted surface for the back button over the art. */
|
|
908
|
+
backClass = computed(() => cn('absolute top-5 right-6 z-1 flex gap-3', this.backFocusClass, '[&_.btn]:bg-base-100/80 [&_.btn]:border-base-content/10 [&_.btn:hover]:bg-base-100 [&_.btn]:backdrop-blur-sm'));
|
|
909
|
+
/** Title color over the art: dark art and unknown tone (over the caption gradient) get white, light art gets black. */
|
|
910
|
+
textClass = computed(() => cn('relative z-1 flex min-w-0 flex-col wrap-break-word text-shadow-sm', this.imageTone() === 'light' ? 'text-black text-shadow-white/30' : 'text-white text-shadow-black/40'));
|
|
909
911
|
hostClass = computed(() => cn('flex min-h-full flex-1 flex-col', this.class()));
|
|
910
912
|
isClassic = computed(() => this.layoutService.selectedLayout() === 'classic');
|
|
911
913
|
bannerUrl = computed(() => {
|
|
@@ -927,13 +929,13 @@ class PageBannerComponent {
|
|
|
927
929
|
}
|
|
928
930
|
}
|
|
929
931
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PageBannerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
930
|
-
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 }, bannerAsset: { classPropertyName: "bannerAsset", publicName: "bannerAsset", isSignal: true, isRequired: false, transformFunction: null }, bannerTone: { classPropertyName: "bannerTone", publicName: "bannerTone", 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 (!imageTone()) {\n\t\t\t\t<!-- Unknown image tone: a
|
|
932
|
+
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 }, bannerAsset: { classPropertyName: "bannerAsset", publicName: "bannerAsset", isSignal: true, isRequired: false, transformFunction: null }, bannerTone: { classPropertyName: "bannerTone", publicName: "bannerTone", 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 (!imageTone()) {\n\t\t\t\t<!-- Unknown image tone: a caption gradient darkens only the corner behind the title, so white text reads over any photo and the rest of the art stays untouched -->\n\t\t\t\t<div\n\t\t\t\t\tdata-st-banner-scrim\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"rounded-box pointer-events-none absolute inset-0 z-0 bg-linear-to-r from-black/70 via-black/40 via-60% to-transparent\"\n\t\t\t\t></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\" [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<!-- Fixed white/black opposite to the image luminance (unknown tone = white over the caption gradient), with a soft halo of the opposite color for busy art -->\n\t\t\t<div [class]=\"textClass()\">\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=\"opacity-80\" 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/80\" 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 -->\n\t<div data-st-banner=\"modern\" class=\"mb-4 flex items-end justify-between\">\n\t\t<div class=\"text-primary-gradient-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-primary-gradient-content/70\" 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]=\"backFocusClass\">\n\t\t\t\t<st-button size=\"sm\" [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"], 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 });
|
|
931
933
|
}
|
|
932
934
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: PageBannerComponent, decorators: [{
|
|
933
935
|
type: Component,
|
|
934
936
|
args: [{ selector: 'st-page-banner', changeDetection: ChangeDetectionStrategy.OnPush, imports: [ButtonComponent, TextDirective, TranslatePipe], host: {
|
|
935
937
|
'[class]': 'hostClass()',
|
|
936
|
-
}, 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 (!imageTone()) {\n\t\t\t\t<!-- Unknown image tone: a
|
|
938
|
+
}, 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 (!imageTone()) {\n\t\t\t\t<!-- Unknown image tone: a caption gradient darkens only the corner behind the title, so white text reads over any photo and the rest of the art stays untouched -->\n\t\t\t\t<div\n\t\t\t\t\tdata-st-banner-scrim\n\t\t\t\t\taria-hidden=\"true\"\n\t\t\t\t\tclass=\"rounded-box pointer-events-none absolute inset-0 z-0 bg-linear-to-r from-black/70 via-black/40 via-60% to-transparent\"\n\t\t\t\t></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\" [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<!-- Fixed white/black opposite to the image luminance (unknown tone = white over the caption gradient), with a soft halo of the opposite color for busy art -->\n\t\t\t<div [class]=\"textClass()\">\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=\"opacity-80\" 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/80\" 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 -->\n\t<div data-st-banner=\"modern\" class=\"mb-4 flex items-end justify-between\">\n\t\t<div class=\"text-primary-gradient-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-primary-gradient-content/70\" 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]=\"backFocusClass\">\n\t\t\t\t<st-button size=\"sm\" [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" }]
|
|
937
939
|
}] });
|
|
938
940
|
|
|
939
941
|
/**
|