@sixbell-telco/sdk 4.4.0 → 4.6.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 +272 -985
- package/GLOSSARY.md +76 -0
- package/README.md +143 -1346
- package/banner.webp +0 -0
- package/components/badge/src/badge.component.d.ts +6 -1
- package/components/dropdown-menu/README.md +1 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +2 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +9 -2
- package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +6 -0
- package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +7 -0
- package/components/dropdown-menu/public-api.d.ts +1 -0
- package/components/dropdown-menu/src/directives/dropdown-menu-keyboard.directive.d.ts +54 -0
- package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +5 -0
- package/components/dropdown-menu/src/dropdown-menu-trigger/dropdown-menu-trigger.component.d.ts +15 -2
- package/components/forms/checkbox/src/checkbox.component.d.ts +12 -1
- package/components/status-illustration/README.md +38 -0
- package/components/status-illustration/index.d.ts +5 -0
- package/components/status-illustration/public-api.d.ts +1 -0
- package/components/status-illustration/src/status-illustration.component.d.ts +42 -0
- package/components/tab/directives/tab-content/tab-content.directive.d.ts +1 -1
- package/components/tree/README.md +11 -1
- package/components/tree/src/tree.component.d.ts +44 -5
- package/components/wizard/README.md +17 -0
- package/components/wizard/services/wizard.service.d.ts +9 -0
- package/components/wizard/wizard-indicator/wizard-indicator.component.d.ts +71 -0
- package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +24 -1
- package/directives/text/src/text.directive.d.ts +6 -2
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +8 -2
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +92 -25
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +29 -3
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +271 -21
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +14 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +15 -5
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-status-illustration.mjs +66 -0
- package/fesm2022/sixbell-telco-sdk-components-status-illustration.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +1 -0
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tree.mjs +171 -51
- package/fesm2022/sixbell-telco-sdk-components-tree.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +123 -356
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs +4 -1
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-layouts.mjs +61 -17
- package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +23 -4
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/i18n/sdk/en.json +4 -1
- package/i18n/sdk/es.json +4 -1
- package/i18n/sdk/pt.json +4 -1
- package/layouts/README.md +24 -6
- package/layouts/public-api.d.ts +1 -1
- package/layouts/src/layout-account.d.ts +16 -0
- package/layouts/src/page-banner/page-banner.component.d.ts +37 -6
- package/layouts/src/user-menu/user-menu.component.d.ts +4 -2
- package/manifest.json +10943 -0
- package/package.json +50 -38
- package/schematics/lib/plan.cjs +179 -0
- package/schematics/lib/tokens.cjs +133 -0
- package/schematics/lib/workspace.cjs +118 -0
- package/schematics/manual-steps.json +90 -0
- package/schematics/migration.json +15 -0
- package/schematics/migrations/v4-0-0/assets.cjs +331 -0
- package/schematics/migrations/v4-0-0/canonical/enghouse_networks.json +360 -0
- package/schematics/migrations/v4-0-0/canonical/shell.json +25 -0
- package/schematics/migrations/v4-0-0/canonical/theme-assets.json +44 -0
- package/schematics/migrations/v4-0-0/canonical/themes.json +11 -0
- package/schematics/migrations/v4-0-0/index.cjs +96 -0
- package/schematics/migrations/v4-0-0/layout.cjs +269 -0
- package/schematics/migrations/v4-0-0/shell.cjs +1864 -0
- package/schematics/migrations/v4-6-0/index.cjs +394 -0
- package/src/_index.css +257 -26
- package/utils/theme/README.md +1 -1
- package/utils/theme/public-api.d.ts +1 -1
- package/utils/theme/src/models/theme.d.ts +10 -0
- package/utils/theme/src/theme-assets/theme-assets.service.d.ts +12 -1
- package/banner.png +0 -0
- package/components/wizard/wizard-marker/wizard-marker.component.d.ts +0 -85
- package/components/wizard/wizard-step/wizard-step.component.d.ts +0 -83
- package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +0 -95
package/i18n/sdk/en.json
CHANGED
|
@@ -135,7 +135,10 @@
|
|
|
135
135
|
"previous": "Previous",
|
|
136
136
|
"end": "End",
|
|
137
137
|
"next": "Next",
|
|
138
|
-
"step": "Step {{index}}"
|
|
138
|
+
"step": "Step {{index}}",
|
|
139
|
+
"stepOf": "Step {{index}} of {{total}}",
|
|
140
|
+
"currentStep": "Current step",
|
|
141
|
+
"upNext": "Up next"
|
|
139
142
|
}
|
|
140
143
|
},
|
|
141
144
|
"datePicker": {
|
package/i18n/sdk/es.json
CHANGED
|
@@ -135,7 +135,10 @@
|
|
|
135
135
|
"previous": "Anterior",
|
|
136
136
|
"end": "Finalizar",
|
|
137
137
|
"next": "Siguiente",
|
|
138
|
-
"step": "Paso {{index}}"
|
|
138
|
+
"step": "Paso {{index}}",
|
|
139
|
+
"stepOf": "Paso {{index}} de {{total}}",
|
|
140
|
+
"currentStep": "Paso actual",
|
|
141
|
+
"upNext": "Siguiente"
|
|
139
142
|
}
|
|
140
143
|
},
|
|
141
144
|
"datePicker": {
|
package/i18n/sdk/pt.json
CHANGED
|
@@ -135,7 +135,10 @@
|
|
|
135
135
|
"previous": "Anterior",
|
|
136
136
|
"end": "Fim",
|
|
137
137
|
"next": "Próximo",
|
|
138
|
-
"step": "Etapa {{index}}"
|
|
138
|
+
"step": "Etapa {{index}}",
|
|
139
|
+
"stepOf": "Etapa {{index}} de {{total}}",
|
|
140
|
+
"currentStep": "Etapa atual",
|
|
141
|
+
"upNext": "A seguir"
|
|
139
142
|
}
|
|
140
143
|
},
|
|
141
144
|
"datePicker": {
|
package/layouts/README.md
CHANGED
|
@@ -98,12 +98,12 @@ With `prefers-contrast: more` the ink (default or override) is capped at lightne
|
|
|
98
98
|
## st-page-banner
|
|
99
99
|
|
|
100
100
|
```html
|
|
101
|
-
<st-page-banner [title]="title" [subtitle]="subtitle" [backLink]="'/tables'"
|
|
101
|
+
<st-page-banner [title]="title" [subtitle]="subtitle" [backLink]="'/tables'">
|
|
102
102
|
<router-outlet />
|
|
103
103
|
</st-page-banner>
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
Classic shows the title over the theme banner image, or a plain surface when the theme has no such asset. Modern shows it on the brand gradient. The projected content fills the remaining height.
|
|
106
|
+
Classic shows the title over the theme banner image, or a plain surface when the theme has no such asset. `bannerAsset` picks the image by its theme asset key and defaults to `network-banner`, the banner every product uses; pass another key (for example `pastel-banner`) only for a different image, or `null` for the plain surface. Modern shows it on the brand gradient. The projected content fills the remaining height.
|
|
107
107
|
|
|
108
108
|
The back button keeps the query params of the current URL listed in `backQueryParams` (type `PageBannerBackQueryParams`, default `['menu']`), so the host's active menu entry (`?menu=`, `menu-id` mode) survives the navigation while page-only params such as `?tab=` are dropped. Pass a longer list to keep more, `'all'` to keep every param, or `[]` to keep none. Params written in `backLink` itself (`'/tables?menu=3'`) win over carried ones; the back link's fragment is kept.
|
|
109
109
|
|
|
@@ -117,15 +117,25 @@ Theme art always uses `ThemeService.resolvedScheme()`; no layout forces a scheme
|
|
|
117
117
|
getAssetUrl(themeService.selectedTheme(), 'logo-modern', themeService.resolvedScheme());
|
|
118
118
|
```
|
|
119
119
|
|
|
120
|
-
Over the image, the
|
|
120
|
+
Over the image, the text sits on a caption fade rising from the bottom-left corner like a photo caption (`radial-gradient(ellipse 460px 170px at 0 100%)`, alpha 0.62 at the corner easing to 0 by 80% of the ellipse), matched to the image tone: a dark fade (`--color-banner-caption-dark`) and white text over dark or unknown art, a light fade (`--color-banner-caption-light`) and near-black text (`--color-banner-caption-light-content`) over light art. The subtitle uses `text-base-content-secondary`, which the caption scope re-points to the text colour at 86%. `scripts/banner-text-contrast.contract.test.mjs` checks every shipped banner on its default surface: title 3:1 and subtitle 4.5:1 at the 5th percentile of the pixels behind the text, at 800 and 1400 px, in every theme.
|
|
121
|
+
|
|
122
|
+
The surface comes from, in order:
|
|
123
|
+
|
|
124
|
+
1. The `bannerTextSurface` input (type `PageBannerTextSurface`): `caption`, `scrim` (a veil across the text column matched to the tone, `--color-banner-scrim-dark` / `-light`), or `auto` (the scrim when the tone is known, else the caption).
|
|
125
|
+
2. The theme catalog's preference for the asset, `textSurface: "scrim"` or `"caption"`. The Enghouse catalog prefers the scrim for `banner` and `valentine-banner`, whose detail sits outside the caption's reach.
|
|
126
|
+
3. The caption.
|
|
127
|
+
|
|
128
|
+
The tone comes from the `bannerTone` input, else the `tone` the catalog declares for the asset and the resolved scheme (`ThemeAssetsService.getAssetTone`). The scrim needs one: without a tone, a requested scrim falls back to the caption and logs one dev-mode console warning naming the asset.
|
|
129
|
+
|
|
130
|
+
For custom art, declare a `tone` so the caption matches it (without one it uses the dark fade). For very light or busy art where the caption is not enough, set `textSurface: "scrim"` on the asset, or `bannerTextSurface="scrim"` with a `bannerTone`:
|
|
121
131
|
|
|
122
132
|
```json
|
|
123
|
-
{ "name": "
|
|
133
|
+
{ "name": "hero", "light": "…/hero-light.jpg", "dark": "…/hero-dark.jpg", "tone": { "light": "light", "dark": "light" }, "textSurface": "scrim" }
|
|
124
134
|
```
|
|
125
135
|
|
|
126
|
-
Over
|
|
136
|
+
Over art the back button sits on a frosted `base-100` surface (80% opacity, backdrop blur) with `base-content` text. The surface and the text come from the same scheme, so the label keeps at least 4.5:1 over any image in both schemes. On the plain surface it is the plain tertiary button.
|
|
127
137
|
|
|
128
|
-
In every case (
|
|
138
|
+
In every case (caption, scrim, plain surface and the modern gradient) its focus ring is two-tone: a `base-content` outline over a 4px `base-100` ring, so one of the two contrasts at least 3:1 with whatever is behind it, in both schemes.
|
|
129
139
|
|
|
130
140
|
## st-layout-switcher
|
|
131
141
|
|
|
@@ -148,6 +158,12 @@ providers: [
|
|
|
148
158
|
user: session.avatarUser, // Signal<AvatarUser | null>
|
|
149
159
|
logout: () => session.logout(),
|
|
150
160
|
changePassword: () => router.navigate(['/account/change-password']), // optional
|
|
161
|
+
// optional: extra Account options, after change password, in this order
|
|
162
|
+
actions: computed(() =>
|
|
163
|
+
session.tenantIds().length > 1
|
|
164
|
+
? [{ id: 'switch-tenant', labelKey: 'account.switch_tenant', icon: matSwapHorizOutline, run: () => session.switchTenant() }]
|
|
165
|
+
: [],
|
|
166
|
+
),
|
|
151
167
|
};
|
|
152
168
|
}),
|
|
153
169
|
];
|
|
@@ -155,6 +171,8 @@ providers: [
|
|
|
155
171
|
|
|
156
172
|
`factory` runs in an injection context, so it can `inject()` app services.
|
|
157
173
|
|
|
174
|
+
`actions` is a `Signal<readonly LayoutAccountAction[]>`: each option has an `id` (also its `data-st-user-menu-option`), a translation key `labelKey`, an optional SDK `icon` and `run`, called when it is picked. Return an empty list to hide them; the Account group shows when there is change password or at least one action. Logout always stays last.
|
|
175
|
+
|
|
158
176
|
```html
|
|
159
177
|
<st-user-menu variant="sidebar" [collapsed]="sidebarCollapsed()" (openLayoutSwitcher)="layoutDialogOpen.set(true)" />
|
|
160
178
|
<st-user-menu variant="navbar" (openLayoutSwitcher)="layoutDialogOpen.set(true)" />
|
package/layouts/public-api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AppLayoutComponent, AppLayoutNavbarEndDirective } from './src/app-layout/app-layout.component';
|
|
2
2
|
export { LAYOUT_ACCOUNT, provideLayoutAccount } from './src/layout-account';
|
|
3
|
-
export type { LayoutAccount } from './src/layout-account';
|
|
3
|
+
export type { LayoutAccount, LayoutAccountAction } from './src/layout-account';
|
|
4
4
|
export { LayoutSwitcherComponent } from './src/layout-switcher/layout-switcher.component';
|
|
5
5
|
export { DEFAULT_COLLAPSE_TOGGLE, LAYOUT_CONFIG, LAYOUT_OPTIONS, provideLayout } from './src/layout.config';
|
|
6
6
|
export type { LayoutCollapseToggle, LayoutConfig, LayoutOption, LayoutType } from './src/layout.config';
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { InjectionToken, Provider, Signal } from '@angular/core';
|
|
2
2
|
import { AvatarUser } from '@sixbell-telco/sdk/components/avatar';
|
|
3
|
+
/** An app-defined option in the Account group of the account menu. */
|
|
4
|
+
export interface LayoutAccountAction {
|
|
5
|
+
/** Stable id, exposed as `data-st-user-menu-option` and used to track the option. */
|
|
6
|
+
id: string;
|
|
7
|
+
/** Translation key of the option label. */
|
|
8
|
+
labelKey: string;
|
|
9
|
+
/** SDK icon (for example from `@sixbell-telco/sdk/components/icon/material/outline`). */
|
|
10
|
+
icon?: string;
|
|
11
|
+
/** Runs when the option is picked; the menu closes afterwards. */
|
|
12
|
+
run: () => void;
|
|
13
|
+
}
|
|
3
14
|
/** The signed-in account as the layouts see it. Apps adapt their own session to this shape. */
|
|
4
15
|
export interface LayoutAccount {
|
|
5
16
|
/** The user shown in the account menu; `null` while there is no session. */
|
|
@@ -7,6 +18,11 @@ export interface LayoutAccount {
|
|
|
7
18
|
logout: () => void;
|
|
8
19
|
/** Opens the app's change-password flow. The option is hidden when absent. */
|
|
9
20
|
changePassword?: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* Extra Account options, listed after change password in this order. A computed signal lets the app
|
|
23
|
+
* show an option only when it applies (for example, switching tenant when the user has several).
|
|
24
|
+
*/
|
|
25
|
+
actions?: Signal<readonly LayoutAccountAction[]>;
|
|
10
26
|
}
|
|
11
27
|
export declare const LAYOUT_ACCOUNT: InjectionToken<LayoutAccount>;
|
|
12
28
|
/**
|
|
@@ -5,11 +5,23 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
* to carry none.
|
|
6
6
|
*/
|
|
7
7
|
export type PageBannerBackQueryParams = readonly string[] | 'all';
|
|
8
|
+
/**
|
|
9
|
+
* Surface behind the classic banner text over art. `caption`: a fade rising from the bottom-left corner, matched to
|
|
10
|
+
* the image tone (dark fade and white text over dark or unknown art, light fade and near-black text over light art;
|
|
11
|
+
* tokens `--color-banner-caption-dark` / `-light`). `scrim`: a veil across the text column matched to the tone
|
|
12
|
+
* (`--color-banner-scrim-dark` / `-light`); it needs a known tone. `auto`: the scrim for a known tone, else the caption.
|
|
13
|
+
*/
|
|
14
|
+
export type PageBannerTextSurface = 'auto' | 'caption' | 'scrim';
|
|
15
|
+
/** @internal Dev-mode switch for the banner's console warnings; specs replace `enabled` to check prod mode. */
|
|
16
|
+
export declare const pageBannerDevMode: {
|
|
17
|
+
enabled: () => boolean;
|
|
18
|
+
};
|
|
8
19
|
/**
|
|
9
20
|
* Page header for the SDK layouts. Classic shows the title over a theme banner image (or a plain
|
|
10
21
|
* surface when the theme has no such asset); modern shows it as light text on the brand gradient.
|
|
11
|
-
* Over an image, the
|
|
12
|
-
*
|
|
22
|
+
* Over an image, the text sits on a caption fade from the bottom-left corner, like a photo caption, matched to
|
|
23
|
+
* the image tone the theme declares in its catalog (`tone`). The catalog can prefer the scrim for an asset
|
|
24
|
+
* (`textSurface`), and the `bannerTextSurface` input overrides both.
|
|
13
25
|
* Projected content (usually a `router-outlet`) fills the remaining height.
|
|
14
26
|
*/
|
|
15
27
|
export declare class PageBannerComponent {
|
|
@@ -27,10 +39,15 @@ export declare class PageBannerComponent {
|
|
|
27
39
|
* every param, `[]` keeps none. A param written in `backLink` itself always wins.
|
|
28
40
|
*/
|
|
29
41
|
readonly backQueryParams: import("@angular/core").InputSignal<PageBannerBackQueryParams>;
|
|
30
|
-
/** Theme asset key of the classic banner image; `null` for a plain surface. */
|
|
42
|
+
/** Theme asset key of the classic banner image (default `network-banner`, the product banner); `null` for a plain surface. */
|
|
31
43
|
readonly bannerAsset: import("@angular/core").InputSignal<string | null>;
|
|
32
44
|
/** Luminance of the banner image; overrides the tone the theme declares for the asset. */
|
|
33
45
|
readonly bannerTone: import("@angular/core").InputSignal<ThemeAssetTone | null>;
|
|
46
|
+
/**
|
|
47
|
+
* Surface behind the classic text over art. Unset (`null`), the theme catalog's preference for the asset
|
|
48
|
+
* (`textSurface`) applies, else `caption`.
|
|
49
|
+
*/
|
|
50
|
+
readonly bannerTextSurface: import("@angular/core").InputSignal<PageBannerTextSurface | null>;
|
|
34
51
|
readonly class: import("@angular/core").InputSignal<string>;
|
|
35
52
|
protected readonly backIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M21 11H6.83l3.58-3.59L9 6l-6 6l6 6l1.41-1.41L6.83 13H21z\"></path></svg>";
|
|
36
53
|
/**
|
|
@@ -45,15 +62,29 @@ export declare class PageBannerComponent {
|
|
|
45
62
|
protected readonly frostedBackClass: string;
|
|
46
63
|
/** Frosted back button pinned to the top-right corner of the art. */
|
|
47
64
|
protected readonly backClass: import("@angular/core").Signal<string>;
|
|
48
|
-
/**
|
|
49
|
-
|
|
65
|
+
/**
|
|
66
|
+
* The surface in use. The scrim needs a known tone (`auto` and `scrim` alike); without one the caption is used,
|
|
67
|
+
* so the text is never left on a scrim of the wrong tone.
|
|
68
|
+
*/
|
|
69
|
+
protected readonly textSurface: import("@angular/core").Signal<"caption" | "scrim">;
|
|
70
|
+
/** Tone of the scrim, when the scrim is in use. */
|
|
71
|
+
protected readonly scrimTone: import("@angular/core").Signal<ThemeAssetTone | null>;
|
|
72
|
+
/** Tone of the caption fade, when the caption is in use: the image tone, dark when unknown. */
|
|
73
|
+
protected readonly captionTone: import("@angular/core").Signal<ThemeAssetTone | null>;
|
|
74
|
+
/** Text scope (`[data-st-banner-text]` re-points base-content and secondary): `caption-<tone>`, or the scrim tone. */
|
|
75
|
+
protected readonly textScope: import("@angular/core").Signal<string>;
|
|
76
|
+
protected readonly textClass = "text-base-content relative z-1 flex min-w-0 flex-col wrap-break-word";
|
|
50
77
|
protected readonly hostClass: import("@angular/core").Signal<string>;
|
|
51
78
|
protected readonly isClassic: import("@angular/core").Signal<boolean>;
|
|
52
79
|
protected readonly bannerUrl: import("@angular/core").Signal<string | null>;
|
|
80
|
+
/** Surface asked for: the input, else the catalog's preference for the asset, else the caption. */
|
|
81
|
+
private readonly requestedSurface;
|
|
53
82
|
/** Tone of the image shown; `null` when neither the input nor the theme declares it. */
|
|
54
83
|
protected readonly imageTone: import("@angular/core").Signal<ThemeAssetTone | null>;
|
|
84
|
+
private warnedScrimWithoutTone;
|
|
85
|
+
constructor();
|
|
55
86
|
protected goBack(): void;
|
|
56
87
|
private carriedQueryParams;
|
|
57
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageBannerComponent, never>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PageBannerComponent, "st-page-banner", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "backLink": { "alias": "backLink"; "required": false; "isSignal": true; }; "backQueryParams": { "alias": "backQueryParams"; "required": false; "isSignal": true; }; "bannerAsset": { "alias": "bannerAsset"; "required": false; "isSignal": true; }; "bannerTone": { "alias": "bannerTone"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageBannerComponent, "st-page-banner", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "backLink": { "alias": "backLink"; "required": false; "isSignal": true; }; "backQueryParams": { "alias": "backQueryParams"; "required": false; "isSignal": true; }; "bannerAsset": { "alias": "bannerAsset"; "required": false; "isSignal": true; }; "bannerTone": { "alias": "bannerTone"; "required": false; "isSignal": true; }; "bannerTextSurface": { "alias": "bannerTextSurface"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
59
90
|
}
|
|
@@ -14,8 +14,8 @@ interface UserMenuSubmenu {
|
|
|
14
14
|
select: (value: string) => void;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
* Account menu of the SDK layouts: the user's avatar opens account actions (change password,
|
|
18
|
-
* and preferences (language, color scheme, theme, layout). The account comes from `provideLayoutAccount`.
|
|
17
|
+
* Account menu of the SDK layouts: the user's avatar opens account actions (change password, app-defined
|
|
18
|
+
* `actions`, logout) and preferences (language, color scheme, theme, layout). The account comes from `provideLayoutAccount`.
|
|
19
19
|
*/
|
|
20
20
|
export declare class UserMenuComponent {
|
|
21
21
|
private readonly account;
|
|
@@ -47,6 +47,8 @@ export declare class UserMenuComponent {
|
|
|
47
47
|
private returnFocusTo;
|
|
48
48
|
protected readonly user: import("@angular/core").Signal<import("@sixbell-telco/sdk/components/avatar").AvatarUser | null>;
|
|
49
49
|
protected readonly canChangePassword: boolean;
|
|
50
|
+
protected readonly accountActions: import("@angular/core").Signal<readonly import("@sixbell-telco/sdk/layouts").LayoutAccountAction[]>;
|
|
51
|
+
protected readonly hasAccountOptions: import("@angular/core").Signal<boolean>;
|
|
50
52
|
protected readonly compact: import("@angular/core").Signal<boolean>;
|
|
51
53
|
protected readonly triggerLabel: import("@angular/core").Signal<string>;
|
|
52
54
|
protected readonly languages: import("@angular/core").Signal<UserMenuChoice[]>;
|